set file iptc / get file iptc list fields

This area contains the messages from the old Yahoo gcmac group after the port.
Post Reply
gapeast
Posts: 0
Joined: Sat Mar 12, 2005 1:26 pm

set file iptc / get file iptc list fields

Post by gapeast »

Hi, In was unable to find the match between the list values of the Applescript commands and the corresponding IPTC fields and Edit File Info (IPTC) fields. The applescript commands are given in the GC dictionary as get file iptc?v : get the iptc information from the file reference get file iptc ? list of string : returns all iptc fields and set file iptc?v : sets the iptc values in the file reference set file iptc to list of string : iptc values By using a predefined set of values I was able to match the list elements to the IPTC fields set theAlias to ("/Users/Username/Desktop/IMG_5866.JPG" as POSIX file) as alias set _iptc to {"field1", "field2", "field3", "field4", "field5", "field6", "field7", "field8", ¬ "field9", "field10", "field11", "field12", "field13", "field14", "field15", ¬ "field16", "field17", "field18", "field19", "field20"} set file iptc of theAlias to _iptc When inspected with GC, the correspondence ends up as: Fields 1 through 20: 1 Caption, 2 Caption Writer, 3 Headline, 4 Instructions, 5 By-line, 6 By-line Title, 7 Credit, 8 Source, 9 Title, 10 Date, 11 City, 12 State, 13 Country, 14 Reference, 15 Category, 16 Supplemental, 17 Urgency (Priority), 18 Keywords, 19 Copyright notice, 20 URL (Photoshop extension) Hope this helps someone. Jerry
Post Reply