
Automator workflow. To view large, click the "screenshot" link within the article.
I saw that someone was having a little trouble using Automator for what seemed like a relatively simple task. I'm not sure at which point this particular person gave up - but what I think may have happened is that they simply overlooked the fact that 1) Automator allows you to combine many actions for several programs into one workflow, and 2) you can even use scripting languages like AppleScript from within Automator should you get stuck.
We're not going to need any scripting languages to pull off what this person wants, but is nice to know that you can use just about any scripting language from within Automator to make-up for Automator's shortcomings.
Here is what the person wanted to do.
The part that stumped me the most is actually using the album name from iPhoto as the name of the Folder. Unfortunately I was unable to get this to work, then again I am not using any scripting in my workflow - so I am guessing that this would be possible if I had.
Details of the workflow (screenshot):
This action will open up a dialog window that will allow you to select the photos, or entire album, that you'd like to export.
This is the action that you have to look closely at. The New Folder action, which comes from the Finder group of actions, is not only to make a new folder - it also allows for the input of files to it. Here is how Automator describes the valid input for this action: (Files/Folders) If files are passed into this action they are copied into the new folder.
This action is set to ask you for a folder name, so it will prompt you for that name.
Typically you'd need to run a "Copy Finder Items" at this point since you wouldn't want to scale your original photos. However the New Folder action does this automatically, which saves us a step. However, this action also "adds" a step.
The Automator experts out there may have a better way of handling this, but if I skip this step I am asking Automator to resize a folder name, not the actual files (so the workflow simply does not work properly). With this added action, I push all of the files from within my newly created folder to the next action.
This action can be found within the Preview set of actions. It is pretty straight forward in that it resizes your newly exported photos by a specified amount, or by a percentage.
At first I thought I'd need to run the Copy and Scale actions again in order to create the thumbnails but Automator has an action built in for this. This action will create a thumbnail with any specific suffix added to it, therefore leaving you with two files per original file - one scaled image and one thumbnail of that scaled image.
This workflow could have been extended to uploading the entire folder to my FTP server of choice, but I left that bit out thinking that perhaps someone would want to open the scaled images in Photoshop or, add them to their favorite WYSIWYG editor, etc. Happy exporting!
Want to see this workflow in action, you can download the workflow.
This article has been cross posted from TheUberGeeks.net - you may read it there if you'd prefer.
Automator is probably one of my favorite Apple apps -- and the one I think to use the least.
Yeah Brian, Automator rocks.
Nice write-up. I usually employ Photoshop's Batch command with recorded actions, but there have been plenty of times I could've just used this handy method. Now if I only remember to use it next time!
Thanks. I've clipped this to use when I get off of my butt & start working with my pictures.
You're in Easy Mode. If you prefer, you can use XHTML Mode instead. |