Automator tip? activate script/workflow after download

Discussion in 'Mac Apps and Mac App Store' started by indigoflowAS, May 8, 2006.

  1. indigoflowAS macrumors 6502

    indigoflowAS

    Joined:
    Oct 31, 2005
    Location:
    Columbus, OH
    #1
    I'm using some Automator workflows in order to sort my web downloads into designated folders...i wanted to do it via Applescript, but it seems like it is over my head.

    I have it set up to move, say a .zip file to a designated "zip" folder. But the Automator workflow runs as soon as the file appears...hence trying to move a partial file...which is not good. Any ideas on how to have a script/workflow run upon the completion of the file?

    If I am not clear, please ask me to elaborate. Thanks.:)
     
  2. scan300 macrumors 6502

    Joined:
    Mar 25, 2003
    Location:
    Melbourne, Australia
    #2
    None of the automator actions monitor downloads. There is one thing with Safari, you can take advantage of. While a download is in progress Safari adds ".download" to the filename, and removes it when the download is complete. In your automator workflow you can add the action 'Find finder items' with the filter "Whose - Extension - Does not contain - download" and the workflow will ignore the file being downloaded, but deal with everything else. The catch is that the automator action won't file the completed download until the workflow is next run.

    You could loop the workflow until the folder is empty, but you'll need to add an applescript to form this part of the task, as I don't think there is an automator action for customised looping.
     

Share This Page