• 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: More questions about scripting iPhoto
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: More questions about scripting iPhoto
      • From: Michelle Steiner <email@hidden>
    • Re: More questions about scripting iPhoto
      • From: "Mark J. Reed" <email@hidden>
    • Re: More questions about scripting iPhoto
      • From: "Mark J. Reed" <email@hidden>
References: 
 >More questions about scripting iPhoto (From: Chris Glowacki <email@hidden>)

  • Prev by Date: Smart Folder Scripting
  • Next by Date: Re: Smart Folder Scripting
  • Previous by thread: More questions about scripting iPhoto
  • Next by thread: Re: More questions about scripting iPhoto
  • Index(es):
    • Date
    • Thread