Re: iPhoto and selection
Re: iPhoto and selection
- Subject: Re: iPhoto and selection
- From: Michelle Steiner <email@hidden>
- Date: Tue, 30 Mar 2010 18:06:16 -0700
On Mar 30, 2010, at 3:13 PM, Rob Lewis wrote: Why does this give the error "Can’t make item 1 of selection into type reference."
tell application "iPhoto" item 1 of selection end tell
Use this
tell application "iPhoto" the selection item 1 of the result end tell
or this
tell application "iPhoto" item 1 of (get the selection) end tell
or this
tell application "iPhoto" set foo to the selection item 1 of foo end tell
I forget why the implicit "get" doesn't work, requiring one of those workarounds .
-- Michelle
-- "We must believe in free will, we have no choice," -- Isaac Bashevis Singer
|
_______________________________________________
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