Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Re: 10.7: Auto-copy Photo Stream images to a folder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Re: 10.7: Auto-copy Photo Stream images to a folder
Authored by: Uncle Asad on Feb 03, '12 01:55:47PM
Since you're looking for improvements and feedback, here's a tip I hope you'll be able to employ: instead of writing hard-coded paths that users have to edit to match their username and whatnot, you can use the "path to _foo_ from _bar_ domain" constructs (with user, system, and network as domains). In this case:
tell application "Finder"
	set this_folder to (path to application support from user domain as string) & "iLifeAssetManagement:assets" as alias
	set target_folder to (path to pictures folder from user domain as string) & "MyStream" as alias
	[rest of script]
end tell
So for this script, the user only needs to change "MyStream" to the desired destination folder (and that can be set to be prompted for once at first execution and stored, so no editing would ever be required); no editing usernames or disk names required. If you're not already familiar with it, has great resources and a great community to help new and experienced AppleScripters alike. Happy AppleScripting :-)

[ Reply to This | # ]