Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Folder Action: print item(s) added to folder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Folder Action: print item(s) added to folder
Authored by: vancenase on Nov 04, '04 05:20:31PM

could something similar to this (a folder action) be used in a folder that I use for my default Safari downloads?

for example, if i download a file using Safari (which defaults to a folder ~/Downloads), and it's a PDF file, could a folder action move it to ~/Downloads/PDFs automatically?



[ Reply to This | # ]
Folder Action: print item(s) added to folder
Authored by: vancenase on Nov 04, '04 06:56:50PM

found a post where i requested this before! neat! :)



[ Reply to This | # ]
redirect scripts
Authored by: sinjin on Nov 04, '04 08:34:25PM
Absolutely. You could use this somewhat complex script and modify it to your needs.

OR take the simple one below that moves EVERY file you add to a folder and wrap a conditional around it that only moves pdfs. See Apple's Applescript samples for help on that last part.


on adding folder items to this_folder after receiving added_items
  repeat with each_item in added_items
    tell application "Finder"
      move each_item to "Path:to:new:folder:" replacing no
    end tell
  end repeat
end adding folder items to


[ Reply to This | # ]
redirect scripts
Authored by: vancenase on Nov 05, '04 02:39:41PM

thanks! i think i'll take a stab at this!



[ Reply to This | # ]