I’m wondering if there is a way to “listen” for specific Finder events, i.e. opening a new Finder window.
I want to run a AppleScript to set file view options if a folder contains images and different file view options if it does not. I don’t want to go the FolderActions route because I want the AppleScript to be attached to all folders on the system disk. I also want to avoid having to apply a FolderAction to any new folder that I create in the future.
Are there any system wide events that get thrown when opening a new Finder window that I can listen for in AppleScript? How would I go about starting an AppleScript to listen for such events?