automator gone haywire

Discussion in 'macOS' started by hehe299792458, Dec 6, 2013.

  1. hehe299792458 macrumors 6502a

    hehe299792458

    Joined:
    Dec 13, 2008
    #1
    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.

    [​IMG]
     
  2. MacForScience macrumors 6502

    MacForScience

    Joined:
    Sep 7, 2010
    Location:
    USA
    #2
    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
     
  3. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #3
    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
     

Share This Page