02-04-2010, 05:48 AM #1
Automatically run Automator workflow
- Member Since
- Feb 04, 2010
I'm new here and this looks like the place to ask this question, so here goes.
I made an Automator workflow (the contextual menu kind) that first changes the modified date of a file to today's date and time and then moves the file to another folder (~/Torrents/). It works perfectly, but I was wondering if there was a way that it would automatically run the workflow when I download a file with the .torrent extension.
I use Safari, and when I download any file it downloads it onto the desktop (I like organizing my downloads myself which is why I don't download straight into ~/Downloads/).
Is there a way so when I download a .torrent file to the desktop it will automatically run my "change date then move file" workflow? I've uploaded a copy of the workflow I made *here*, the only difference is that the attached file is not a context menu service.
Thanks, I'd really appreciate any input I could get!
02-11-2010, 04:22 PM #2
- Member Since
- Feb 11, 2010
Hi, what your looking for is an automator trigger, this is possible with a folder action. Instead of creating a service, you have to choose "Folder action" when creating a new file in automator. Then select your desktop folder in the top of the automator window (my system is in french, so I don't know what's the exact label in english, but you can't miss it, there's a drop down menu to select the folder). Then add your actions like you would do in a service, if I where you, I would add an action above all, to make sure your script only works on .torrent files. I guess the name in english should be something like "Filter finder items", in this action you can add a condition like "only file with .torrent extension". And then add the action your using in your workflow. It should to the trick, every time a new file gets in your desktop folder, the script will launch, if it's a .torrent file, it will execute your script.
I hope this will help you, let me know if I'm not clear enough.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By bassguy86 in forum OS X - Operating SystemReplies: 0Last Post: 08-31-2011, 04:20 AM
By deejay390 in forum OS X - Apps and GamesReplies: 2Last Post: 11-06-2010, 02:40 PM
By iPod Nano in forum OS X - Apps and GamesReplies: 6Last Post: 06-28-2009, 04:38 PM
By shahvikram123 in forum OS X - Operating SystemReplies: 0Last Post: 07-21-2007, 01:51 PM
By rs2sensen in forum OS X - Operating SystemReplies: 0Last Post: 10-13-2005, 08:26 PM