• 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: Keywords in Aperture
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keywords in Aperture


  • Subject: Re: Keywords in Aperture
  • From: Martin Orpen <email@hidden>
  • Date: Fri, 1 Aug 2008 22:13:25 +0100

On 1 Aug 2008, at 20:36, Jan Erik Moström wrote:

Does anyone have some suggestions for how I should do to add a predefined keyword to a photo (and remove an existing one)?

To get the keywords:

	tell application "Aperture"
		every keyword of item 1 of (get selection)
	end tell


To add a keyword -- or, in this case, a whole hierarchy of keywords:

tell application "Aperture"
set foo to item 1 of (get selection)
tell foo
make new keyword with properties {name:"myKeyword", parents:"AppleScript Code Example"}
end tell
end tell




Regards

--
Martin Orpen
Idea Digital Imaging Ltd


_______________________________________________ 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: Keywords in Aperture
      • From: Jan Erik Moström <email@hidden>
References: 
 >Keywords in Aperture (From: Jan Erik Moström <email@hidden>)

  • Prev by Date: Re: Alias Files
  • Next by Date: Re: Keywords in Aperture
  • Previous by thread: Keywords in Aperture
  • Next by thread: Re: Keywords in Aperture
  • Index(es):
    • Date
    • Thread