-
All replies
-
Helpful answers
-
-
Apr 3, 2013 1:33 PM in response to itsasinchby red_menace,You can create a Service workflow to get the folder(s). The workflow would consist of actions to save the input items to a vatiable (so they can be refiltered), then get the input items, apply a filter, and move the resulting items - for example:
Service receives selected folders in Finder
- Get Folder Contents
- Set Value of Variable { Variable: Original Items }
- Filter Finder Items { Find files where: kind is music }
- Move Finder Items { To: Automatically Add to iTunes }
- Get Value of Variable { Variable: Original Items } ( Ignore Input )
- Filter Finder Items { Find files where: kind is image }
- Move Finder Items { To: Album Artwork }
...repeat the Get/Filter/Move actions as needed for other filters
-
Apr 3, 2013 5:00 PM in response to red_menaceby itsasinch,red_menace wrote:
You can create a Service workflow to get the folder(s). The workflow would consist of actions to save the input items to a vatiable (so they can be refiltered), then get the input items, apply a filter, and move the resulting items - for example:
Service receives selected folders in Finder
- Get Folder Contents
- Set Value of Variable { Variable: Original Items }
- Filter Finder Items { Find files where: kind is music }
- Move Finder Items { To: Automatically Add to iTunes }
- Get Value of Variable { Variable: Original Items } ( Ignore Input )
- Filter Finder Items { Find files where: kind is image }
- Move Finder Items { To: Album Artwork }
...repeat the Get/Filter/Move actions as needed for other filters
Thanks, the "Set Value of Variable" concept is what I was missing. It almost works. The music files get moved, but then it says the workflow encounters a problem and the image files aren't being moved. I'm assuming it's an issue with steps 5-7. Thoughts?
-
Apr 3, 2013 5:35 PM in response to itsasinchby red_menace,If you run the workflow from Automator (you will need to temporarily add an action such as Ask for Finder Items to get something to work with) you can look at the log for a specific error message or the output results of an action to see what is happening. Check what is being output from the Get Value of Variable and the second Filter Finder Items actions.
-
Aug 18, 2013 7:37 PM in response to itsasinchby TroyDWhite,I was able to get this to work by using Copy Finder Items instead of Move Finder Items.
I assume the reason move doesn't work is because it removes the file and doesn't allow the rest of the service to complete (but I'm not sure).
I use this service to filter images, MP3's and dmg files that I download via Chrome to 3 different folders.