Thanks. That's totally reasonable, I can handle the different execution paths within my script.
I have a separate question or two, but didn't think it warranted starting a new question thread so I'll try asking it here.
I am setting up a system that will monitor to see if an SD card with photos is inserted into my mac, and then process the photos if so. Generally the SD card is called "NO NAME" and it will have a /DCIM directory under which cameras create sub-directories to store its photos e.g. /DCIM/100OLYMP for my E-PL5.
Right now I am monitoring the camera maker sub-directory i.e. /DCIM/100OLYMP rather than either the root directory or /DCIM. This works find most of the time, but sometimes when the SD card is not in my mac (because it is back in the camera, its usual state) Hazel detects that the directory /DCIM/100OLYMP doesn't currently exist. Hazel will then 1) disable (uncheck) the rule, and 2) change the folder icon from blue to light blue with a red X through it. At this point the folder is not being monitored and the rule is not in effect anyway, and this does not change even if I put the SD card back in my mac.
I hope the above is relatively clear. My first question is: is there a way to keep Hazel from disabling the folder monitoring and rule when it detects that the monitored folder temporarily doesn't exist, so that when the SD card is put back in the mac the folder monitoring and rule work normally?
My second question comes about because I am trying to modify my system to get around the above issue. I would like to monitor the folder one level above where the "NO NAME" folder device gets mounted when the SD card is inserted. In Terminal this corresponds to the /Volumes directory, in Finder this corresponds to my mac device name. When I try to add this to the Folders pane in Hazel, while it does show the proper directory when I click "+" to add a folder and click on my mac device, the Open button is grayed out and I am unable to choose this folder to monitor. Is there a way to monitor the /Volumes directory to see if a new disk device has been mounted?
Thanks again.