• 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
Photos: apply keyword to multiple selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Photos: apply keyword to multiple selection


  • Subject: Photos: apply keyword to multiple selection
  • From: 2551phil <email@hidden>
  • Date: Tue, 10 May 2016 22:12:04 +0700

Hmm, does anyone know how this might be done?

I see from the dictionary that ‘keywords’ are not r/o, and the wording (“to associate”) suggests they should be writable:

keywords (list of text) : A list of keywords to associate with a media item

However, I’m having difficulty figuring out the syntax. If I get my selection like this:


set myList to {}
tell application id "com.apple.Photos"
repeat with i from 1 to count of selection
set end of myList to filename of item i of (get selection)
end repeat
end tell


What verb/command should I use to add a new keyword like “Wedding” to the keywords list of every item in the entire selection?


TIA


Best


Phil
 _______________________________________________
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: Photos: apply keyword to multiple selection
      • From: 2551phil <email@hidden>
    • Re: Photos: apply keyword to multiple selection
      • From: Stan Cleveland <email@hidden>
    • Re: Photos: apply keyword to multiple selection
      • From: "Schmidt, Michael" <email@hidden>
  • Prev by Date: Re: set width of column id size column
  • Next by Date: Re: Photos: apply keyword to multiple selection
  • Previous by thread: Re: set width of column id size column
  • Next by thread: Re: Photos: apply keyword to multiple selection
  • Index(es):
    • Date
    • Thread