check the creator of a file

Post Reply
pcarvalho
Newbie
Posts: 16
Joined: Tue Dec 16, 2014 12:08 pm

check the creator of a file

Post 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.
dkelly
TOP CONTRIBUTOR
Posts: 628
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

Re: check the creator of a file

Post by dkelly »

Code: Select all

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