More iPhoto Scripting Oddness
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
|
_______________________________________________
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