Re: iPhoto album scripting
Re: iPhoto album scripting
- Subject: Re: iPhoto album scripting
- From: Philip Aker <email@hidden>
- Date: Tue, 16 Oct 2007 18:24:38 -0700
On 2007-16-10, at 12:28, nick weldin wrote:
It does break though if someone has 2 albums selected in the iPhoto window, so it would be great if there was a way to work with the values returned by get selection (if 2 albums are selected that returns the id of each of them and I could work through them both).
Hi Nick,
The following works -- but watch out because sometimes the selection can be a plurality of 'photos' and that's a different can of worms…
tell application "iPhoto" set res to {} set alist to get selection repeat with alb from 1 to count of alist tell album alb repeat with p in photos --set end of res to {title of p, width of p, height of p} set end of res to properties of p end repeat end tell end repeat res end tell
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden