• 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
More iPhoto Scripting Oddness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

More iPhoto Scripting Oddness


  • Subject: More iPhoto Scripting Oddness
  • From: Chris Glowacki <email@hidden>
  • Date: Wed, 27 Feb 2008 11:50:28 -0800

OK,

I've distilled this to a simple observable oddity- does this make sense ?

Consider the following:
tell application "iPhoto"
set klist to item 1 of (every keyword whose name does not start with "_")
set tagphoto to first photo whose keywords contains klist
get keywords of tagphoto



end tell

When the item is 1 I get the right result- thus:

(event log)
tell application "iPhoto"
get item 1 of every keyword whose name does not start with "_"
keyword "Key_1"
get photo 1 whose every keyword contains keyword "Key_1"
photo id 4.294967425E+9
get every keyword of photo id 4.294967425E+9
{keyword "Key_1"}
end tell

If the item is NOT the first item, I get something else :

tell application "iPhoto"
get item 2 of every keyword whose name does not start with "_"
keyword "Key_2"
get photo 1 whose every keyword contains keyword "Key_2"
photo id 4.294967426E+9
get every keyword of photo id 4.294967426E+9
{keyword "Key_1"}
end tell


chris
 _______________________________________________
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

  • Prev by Date: Re: applescript & installer behavior
  • Next by Date: Re: applescript & installer behavior
  • Previous by thread: Keyword selection in iPhoto generates incorrect list.
  • Next by thread: linebreak in a shell script; was Re: What's wrong with this call to zip?
  • Index(es):
    • Date
    • Thread