How to determine if a file is a raster or vector eps with a script
I am trying to write a script to open an EPS file in Photoshop if it is a raster image and in Illustrator if it is a vector image. The problem is how to determine that.
Since it is before the file is opened, I need to reference the XMP or parse the file.
For the moment, I found that it can be determined to some extent by checking whether exif:PixelXDimension exists or not.
var pixelWidth = xmpMetaObj.getProperty(XMPConst.NS_EXIF, 'PixelXDimension').toString() ;
What are some of the more reliable methods? The file could have been saved using a non-Adobe app.
