Photo Stream is a nice feature of iCloud that pushes all of your pictures automatically to your other iOS devices and your Mac with iPhoto or Aperture. If you haven’t used it before, this means if you take a picture on your iPhone, it will automatically show up in the Photo Stream on your iPad, and also in iPhoto on your Mac. Oddly, there isn’t an option to choose a destination other than iPhoto or Aperture in Mac OS X though, but this cool trick allows you to specify a folder and then download all the images from iCloud to your Mac, without using iPhoto or Aperture.
In order to use the following script, you will need iOS 5 and OS X 10.7.2 or later, as well as and the Photo Stream option enabled in Mac OS X’s iCloud System Preferences.
tell application "Finder"
set this_folder to "Macintosh HD:Users:USERNAME:Library:Application Support:iLifeAssetManagement:assets" as alias
set target_folder to "Macintosh HD:Users:USERNAME:Pictures:MyStream" as alias
duplicate (every file of the entire contents of this_folder whose name contains "IMG") to the target_folder with replacing
Now anytime you want to download your Photo Stream to your Mac, just launch that saved script app and you will grab your latest Photo Stream images to the configure directory in Mac OS X. For best results, place the application into your /Applications directory and add it to Launchpad for easy future use.
AppleScript Editor is fairly intuitive, and if you entered a directory or path wrong when you attempt to run the script it will let you know with an “AppleScript Error” message. If you get a “iLifeAssetManagement:assets wasn’t found” message, then you haven’t enabled Photo Stream in iCloud’s System Preference panel.
Hopefully a future update to iCloud and Photo Stream will allow us to choose an image download destination directly, but until then this great trick works just fine.
Like this? Check out some more iCloud tips.