Re: More questions about scripting iPhoto
Re: More questions about scripting iPhoto
- Subject: Re: More questions about scripting iPhoto
- From: "Mark J. Reed" <email@hidden>
- Date: Mon, 25 Feb 2008 23:11:27 -0500
On Mon, Feb 25, 2008 at 9:31 PM, Chris Glowacki <email@hidden> wrote:
> Since there did not appear any way to create a list of photos with a specific keyword
set desiredTagName to "chase" -- change as desired
tell application "iPhoto"
set desiredTag to false
repeat with tag in keywords
if tag's name is desiredTagName then
set desiredTag to tag
end if
end repeat
if desiredTag is false then
display dialog "No photos tagged with '" & desiredTagName & "'"
set taggedPhotos to {}
else
set taggedPhotos to every photo whose keywords contains desiredTag
end if
taggedPhotos
end tell
I have 4,005 photos in my library, and the above script found the 147
with the tag in 2 seconds...
--
Mark J. Reed <email@hidden>
_______________________________________________
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