• 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: PhotoShop MetaData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: PhotoShop MetaData


  • Subject: RE: PhotoShop MetaData
  • From: Oakley Masten <email@hidden>
  • Date: Mon, 19 Apr 2010 12:50:07 -0700 (PDT)

Well with a little more research I have come up with the answer.
Thought I would share what I found as a way of saying thanks for your always being there..

set KWList to {}

tell application "Adobe Photoshop CS2"

--set photoCaption to caption of info of document 1

--set dataall to properties of document 1

--set InfoList to info of document 1

--this Gets current list of "KeyWords"

set KWList1 to keywords of info of document 1

--This clears current "Keywords" and replaces them with "ByteMe"

set keywords of info of document 1 to "ByteMe"

--This reads "Keywords" to see if the replacement has taken place

set KWList2 to keywords of info of document 1

--This adds a "Keyword" to the existing list

set KWList3 to KWList2 & "Nice Talk"

--This writes the new "Keyword" List to the file

set keywords of info of document 1 to KWList3

--This reads the current "Keywork" list to verify the modification

set KWList4 to keywords of info of document 1

--This is a test to see if a "Keyword" is included in the "Keyword" list

if KWList4 contains "ByteMe" then

display dialog "One of the Keywords is <ByteMe>"

else

display dialog "Nope it ain't there!"

end if

end tell


Oakley

 _______________________________________________
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: PhotoShop MetaData
  • Next by Date: Applescript oddity under 10.4.11
  • Previous by thread: PhotoShop MetaData
  • Next by thread: Applescript oddity under 10.4.11
  • Index(es):
    • Date
    • Thread