

Feb 03, '12 07:30:00AM • Contributed by: 10.7: Auto-copy Photo Stream images to a folder



Looking for a solution I found that iPhoto stores its pictures in a specific location and the Photo Stream is updated even if iPhoto is not running. The goal was to create a script that copies all of the images from many sub-directories into a single folder.



As there are many people who know a lot more about OSX I would welcome improvements and feedback. Some areas to look at: Using 'without replacing' which would only copy the missing pictures.

A Folder action which monitors changes and runs the script automatically. Here's the script: tell application "Finder" set this_folder to "Macintosh HD:Users:duittenb:Library:Application Support:iLifeAssetManagement:assets" as alias set target_folder to " Macintosh HD:Users:user:Pictures:MyStream " as alias try duplicate (every file of the entire contents of this_folder whose name contains "IMG") to the target_folder with replacing end try end tell Instructions



Replace the target_folder path (underlined above) with your actual destination folder. You can save the script as an application in your /Applications folder or to your Scripts menu.



[crarko adds: Note that you'll also need to modify the this_folder path if your boot drive isn't named 'Macintosh HD.'] To get the Photo Stream working on my MacBook I found out that I had to BUY an upgrade for an application that I don't want: iPhoto.Looking for a solution I found that iPhoto stores its pictures in a specific location and the Photo Stream is updated even if iPhoto is not running. The goal was to create a script that copies all of the images from many sub-directories into a single folder.As there are many people who know a lot more about OSX I would welcome improvements and feedback. Some areas to look at:Here's the script:Replace the target_folder path (underlined above) with your actual destination folder. You can save the script as an application in your /Applications folder or to your Scripts menu.Note that you'll also need to modify the this_folder path if your boot drive isn't named 'Macintosh HD.']

Currently 3.00 / 5 You rated: 2 / 5 (5 votes cast) [21,435 views] Hint Options Printable Hint Format

Subscribe to 'System 10.7'





