Folder Action repeats indefinitely. How do I get it to run once?
Maybe I don't understand folder actions, but I created a very simple "Date Stamp" application in automator that uses Apple's "Rename Finder Items" to add the Modified Date to a filename. I then saved that as a Folder Action to a Backups folder, so that whenever I copy a file into that folder using drag and drop, a date stamp is added to the end of the filename.
It works like a charm. Then it works again, every 5 seconds or so, FOREVER.
Here's the applescript that runs on the folder:
on adding folder items to this_folder after receiving added_items
tell application "Macintosh HD:Users:stevo:Library:Workflows:Applications:Folder Actions:Date Stamp2.app"
open added_items
end tell
end adding folder items to
I thought the folder action only runs when NEW files are added, but mine seems to be running on anything ALREADY in the folder.
What am I missing? Any help would be appreciated.
2.53 GHz Intel Core 2 Duo MacBook Pro (15"), Mac OS X (10.5.6), 4 GB RAM