Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Applescript, XMP, and custom namespaces

$
0
0

Having had to switch gears from JS to AS to solve a database integration problem, I could use some help getting specific XMP out of my AI files via AppleScript. Extracted this from the InDesign forums... doesn't work for illustrator (gives error "expected expression but found property")

 

tell links

            set InhouseClient to get property link xmp namespace "http://ns.Inhouse.com/Inhouse" path "Client"

end tell

 

I know I can dump the whole XMP string with:

 

set XMPStringData to (get XMP string of current document)

 

but I'd rather do something like the first example. If I were in JS, I'd use

var property = myXmp.getProperty(propertyuri, propertyname, XMPConst.STRING);

The syntax looks pretty close to the first AppleScript, but why is it choking on the "property" when inside a "tell Illustrator" when is works inside a "tell InDesign"?


Viewing all articles
Browse latest Browse all 12845

Trending Articles