I believe it's possible to "watch" a specific folder using Automator, and when a file appears in that folder further action can proceed, but I don't understand exactly how to get this done.
What I want is a "Scanned images" folder to be watched, and when a new image is scanned and appears in that folder a script with several terminal commands are run (basically calling the command line application Exiftool to create an EXIF date/time tag (usually missing from scanned images) and copy the OSX file Creation date to this tag) and finally rename the file by adding the date/time to the filename (based on the newly created EXIF time/date tag) in the format YYYYMMDD-HHMMSS_originalfilename).
This is done by selecting "Folder Action" as a new Automator file, isn't it, then select the folder to be watched, right (as seen below)?
I suppose the next step is to define what should be done when a file enters that folder, which would probably be "Run shell script", but since I don't know much about that part yet I decided to experiment with "Rename Finder items" where I defined the renaming process and pressed the Automator "Run" button and expected the action to start, but it only seems to run once then stop, and no file is being renamed if I put it in the folder.
So what am I doing wrong, and when done configuring, how do I actually get the script to start and run all the time? Should this be a "Login item" (System preferences-Users & groups-Login items)?
I'm using OSX 10.9.5.
What I want is a "Scanned images" folder to be watched, and when a new image is scanned and appears in that folder a script with several terminal commands are run (basically calling the command line application Exiftool to create an EXIF date/time tag (usually missing from scanned images) and copy the OSX file Creation date to this tag) and finally rename the file by adding the date/time to the filename (based on the newly created EXIF time/date tag) in the format YYYYMMDD-HHMMSS_originalfilename).
This is done by selecting "Folder Action" as a new Automator file, isn't it, then select the folder to be watched, right (as seen below)?
I suppose the next step is to define what should be done when a file enters that folder, which would probably be "Run shell script", but since I don't know much about that part yet I decided to experiment with "Rename Finder items" where I defined the renaming process and pressed the Automator "Run" button and expected the action to start, but it only seems to run once then stop, and no file is being renamed if I put it in the folder.
So what am I doing wrong, and when done configuring, how do I actually get the script to start and run all the time? Should this be a "Login item" (System preferences-Users & groups-Login items)?
I'm using OSX 10.9.5.