• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Selection in iPhoto
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Selection in iPhoto (From: Le Pors Gilles <email@hidden>)

  • Prev by Date: Re: Pipes
  • Next by Date: Re: Pipes
  • Previous by thread: Selection in iPhoto
  • Next by thread: Pipes
  • Index(es):
    • Date
    • Thread