Is it possible to watch folders with a JXA script on Mac?
I am trying to figure out how to detect a folder was opened and run a JXA script. Apple has a javascript version of most things in their guide, but not this page: https://developer.apple.com/library/content/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/WatchFolders.html#//apple_ref/doc/uid/TP40016239-CH39-SW1