• 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: How to add keywords to photos in iPhoto?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to add keywords to photos in iPhoto?


  • Subject: Re: How to add keywords to photos in iPhoto?
  • From: "Mark J. Reed" <email@hidden>
  • Date: Fri, 5 Dec 2008 19:55:04 -0500

This works for me:

tell application "iPhoto"
    assign keyword string "My Tag"
end tell

but if the string "My Tag" doesn't exist as a keyword, it fails
silently.  To check this:

set myTag to "My Tag"
tell application "iPhoto"
	try
		get keyword myTag
	on error
		display dialog "Sorry, keyword '" & myTag & "' doesn't exist"
	end try
	assign keyword string myTag
end tell

I tried creating a new keyword, but I couldn't get it to work:

make new keyword at end of keywords with properties {name: "someName"}

gives me

iPhoto got an error: AppleEvent handler failed.
 _______________________________________________
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: How to add keywords to photos in iPhoto?
      • From: Dalmazio Brisinda <email@hidden>
References: 
 >How to add keywords to photos in iPhoto? (From: Dalmazio Brisinda <email@hidden>)
 >Re: How to add keywords to photos in iPhoto? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: How to add keywords to photos in iPhoto?
  • Next by Date: Re: How to add keywords to photos in iPhoto?
  • Previous by thread: Re: How to add keywords to photos in iPhoto?
  • Next by thread: Re: How to add keywords to photos in iPhoto?
  • Index(es):
    • Date
    • Thread