• 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
Newbie question - add Keywords to photos
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie question - add Keywords to photos


  • Subject: Newbie question - add Keywords to photos
  • From: Topher Sabot <email@hidden>
  • Date: Fri, 15 Jun 2007 13:31:18 -0600
  • Thread-topic: Newbie question - add Keywords to photos

Hi _ I am trying to write a script that will add specified keywords to a
photo.  My plan is to use it as a Folder Action so when images are added to
a specific folder, certain keywords are automatically added.

I am currently getting the following error

NSReceiverEvaluationScriptError: 4

Here is the script I wrote to add the keyword

set this_file to choose file
try
    tell application "Image Events"
        launch
        -- open the image file
        set this_image to open this_file
        -- perform action
        tell this_image
            set value of metadata tag "Keywords" to "Bozeman"
            close
        end tell
        -- save the changes
        save this_image with icon
        -- purge the open image data
        close this_image
    end tell
on error error_message
    display dialog error_message
end try


Thanks so much!


 _______________________________________________
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

  • Prev by Date: Print word document to PDF
  • Next by Date: Re: Print word document to PDF
  • Previous by thread: Re: Print word document to PDF
  • Next by thread: Scope for Beginners
  • Index(es):
    • Date
    • Thread