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.
check the creator of a file
-
- TOP CONTRIBUTOR
- Posts: 628
- Joined: Mon Nov 29, 2010 8:45 pm
- Location: Alpharetta GA USA
- Contact:
Re: check the creator of a file
Code: Select all
var creator = job.getVariableAsString("[Doc.Application]");
if ($extension == "eps" || creator == "Illustrator") {
// do something
}