• 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: Rép : Selection in iPhoto
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rép : Selection in iPhoto


  • Subject: Re: Rép : Selection in iPhoto
  • From: Craig Sutherland <email@hidden>
  • Date: Sun, 11 Jan 2004 10:57:24 -0600

Gilles-
On Jan 11, 2004, at 6:14 AM, Le Pors Gilles wrote:
select {photo id 3434}
instead of
select photo id 3434
did the trick ;-).
On the other hand:
You can either set the view first or select the photo first.
It looks like you can't.

To view a series of photos, it appears the organize view must be selected first to be able to select a different photo than the current selection
>snip<

So, I know it doesn't make sense but it looks like you cannot select
another photo if one is "open in edit view".

To loop through the photos, applescript needs an list object to loop through. Then it needs a list of items in that object. I believe the following provides the function you are looking for.

tell application "iPhoto"
activate
select photo library album --object looped
set photo_List to every photo of photo library album --list of items in looped object
set photo_count to count of photo_List
repeat with i from 1 to photo_count
set view to organize
set this_photo to photo i
select {this_photo}
set view to edit
delay 1
end repeat
end tell

This could be shorten a couple of lines, but this way it is easy to follow.

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: 
 >Rép : Selection in iPhoto (From: Le Pors Gilles <email@hidden>)

  • Prev by Date: Re: Unvirtual ambient photon quotient
  • Next by Date: Re: How can I display the number of records processed using a thermometer
  • Previous by thread: Rép : Selection in iPhoto
  • Next by thread: How Do I Make It Work
  • Index(es):
    • Date
    • Thread