Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

hehe299792458

macrumors 6502a
Original poster
Dec 13, 2008
783
3
I have an automator folder action that automatically adds the date in the format of yyyy-mm-dd in front of files I put into that folder.


However, automator has gone haywire and adds the date over and over again to the same file.

Screen%20Shot%202013-12-06%20at%202.19.57%20PM.png
 
Has the script ever worked correctly?

Just based on what you have said; I would say you did something wrong on your script. You could also try creating a new folder, and adding the action to it, and see if it is a folder corruption issue.

Cheers
 
Show us exactly what your script does.

If your script renames a file and keeps it in the folder that has the folder-action, then consider what effect the renaming of a file might have. I suspect it has the same effect as moving a file into the folder, that is, the folder has a file with a new name. If a file with a new name is what triggers the folder-action, then what would be the effect of renaming a file?

If that is indeed what's happening, you'll have to break the cycle by renaming the file while also moving it to another folder.

Also see:
http://en.wikipedia.org/wiki/Infinite_loop
http://en.wikipedia.org/wiki/Recursion
http://en.wikipedia.org/wiki/Circular_definition
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.