Re: Selection in iPhoto
Re: Selection in iPhoto
- Subject: Re: Selection in iPhoto
- From: Craig Sutherland <email@hidden>
- Date: Sun, 11 Jan 2004 00:32:19 -0600
On Jan 10, 2004, at 2:14 PM, Le Pors Gilles wrote:
I wanted to select a photo in iPhoto (by id or by name, whatever) and
have it displayed in edit view.
Open the dictionary for iPhoto then read through the iPhoto suite. You
will see that view is a property of application not photo, so you tell
the application iPhoto to set the view.
I wrote
tell application "iPhoto" to select photo id 3434
Select requires a reference, and this reference is a list since there
can be more than one photo selected, Lists are contained in curly
braces.
tell application "iPhoto"
select {photo id 3434}
set view to edit
end tell
You can either set the view first or select the photo first.
Gilles Le Pors
Craig
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.