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

Rép : Selection in iPhoto


  • Subject: Rép : Selection in iPhoto
  • From: Le Pors Gilles <email@hidden>
  • Date: Sun, 11 Jan 2004 13:14:36 +0100

Craig,


First, thank you very much for taking the time to help me out.


> 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.


I did:

tell application "iPhoto"

set the view to edit
get the selection
--{photo id 2317 of application "iPhoto"}
select {photo id 1554}
get the selection
--{photo id 2317 of application "iPhoto"}

end tell


Whereas, thanks to you:

tell application "iPhoto"

set view to organize
repeat until the selection is {photo id 1554}
select {photo id 1554}
end repeat
set view to edit

end tell

indeed works.


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

I'm not sure the repeat loop is necessary. First, I tried without it
and it didn't work (I suppose, for a completely different reason). I
tried with it and it worked. Again, I tried without it and it worked
also. Nevertheless, better safe than sorry.

A repeat loop doesn't change the outcome of the first example.

It looks like you cannot tell the APPLICATION to set the view (to edit
or to organize) if you have set the visible of the WINDOW to false (you
cannot get the selection either).


Thanks again,


Yours Sincerely,

Gilles Le Pors
_______________________________________________
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.

  • Follow-Ups:
    • Re: Rép : Selection in iPhoto
      • From: Craig Sutherland <email@hidden>
  • Prev by Date: Re: handling Unicode text
  • Next by Date: How Do I Make It Work
  • Previous by thread: Re: File age
  • Next by thread: Re: Rép : Selection in iPhoto
  • Index(es):
    • Date
    • Thread