Page 1 of 1

check the creator of a file

Posted: Wed Apr 01, 2015 12:41 pm
by pcarvalho
In a switch workflow we can use [Doc.Application] contains "Illustrator" to check is a file is illustrator

How can i do it by script when opening the file in Photoshop?
Can i do something like this:
if ($extension == "eps" || $infile.application.name.indexOf("Illustrator")>-1)
{.....
This is because there are eps files from illustrator and from photoshop, and illustrator files needs to be rasterized but photoshop files don't.

Re: check the creator of a file

Posted: Wed Apr 01, 2015 3:08 pm
by dkelly

Code: Select all

var creator = job.getVariableAsString("[Doc.Application]"); 
if ($extension == "eps" || creator == "Illustrator") {
  // do something
}