Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

How do I parse "dc:format" from XMP?

$
0
0

Clearly, I'm new to XMP/XML for Photoshop. I'm building a script to handle illustrator files differently than PS files, and would like to do this through the XMP as it seems to be more stable than simply File("blah.txt").type, and the other methods require searching the filename, which the extension is left off of it when opening Illustrator in Photoshop. Plus since it keeps the font info, I may be able to use this for even more!

 

What I have is:

var xmp = new XMPMeta( activeDocument.xmpMetadata.rawData); 

alert(xmp.getProperty(XMPConst.NS_XMP,"dc:format"))

 

This of course doesn't work. Anybody have an good XML Parse 101 tips?


Viewing all articles
Browse latest Browse all 12244

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>