How can I automate generic opening EPS files and save in TIF?

Hello

I am trying to automate the process of opening files EPS Genric 100 and save them as targets. One of the things is that I need to rasterize these files at 1200 dpi (not the default 72 dpi) and I want off anti-aliasing. I tried to use actions without luck, and I touched my feet in the scripts, which I know absolutely nothing. Here is the script that I copied from another post and changed, and is then lower than that I received the error message. Anyone have any ideas? I use CS4.

var epsOpts = new EPSOpenOptions();

epsOpts.antiAlias = false;

epsOpts.mode = OpenDocumentMode.CMYK;

epsOpts.resolution = 1200;

epsOpts.constrainProportions = true;

#target Photoshop

app.bringToFront;

var InFolder = Folder.selectDialog ("~ jesse$ / Volumes/Iomega\ hand/Current\ projects/Stone\ soup/Stone\ Soup\ guide\ 10/Images\ 2/Test ');

if (InFolder! = null) {

List of files of the var = inFolder.getFiles (/ \.) ((EPS)) $ / i);

var outfolder = new Folder (decodeURI (inFolder) + ' ~ jesse$ / projects/Volumes/Stone\ the hand/Current\ of the Iomega\ soup/Stone\ Soup\ guide\ 10/Done ");

if (outfolder.exists == false) outfolder.create ();

for (var a = 0; a < fileList.length; a ++) {

if ([a] instanceof file fileList) { }

var doc = open (fileList [a], epsOpts);

var Nomdoc is fileList [a].name.slice (0, -4);.

while (app.documents.length) { }

saveFile var = new queue (decodeURI (outfolder) "/" ".tif"+ docname);

SaveTiff (saveFile);

activeDocument.close (SaveOptions.DONOTSAVECHANGES);

}

}

}

};

function SaveTiff (saveFile) {}

tiffSaveOptions = new TiffSaveOptions();

tiffSaveOptions.embedColorProfile = false;

tiffSaveOptions.imageCompression = TIFFEncoding.TIFFLZW

activeDocument.saveAs (saveFile, tiffSaveOptions, true, Extension.LOWERCASE);

}

Screen shot 2012-12-14 at 11.40.25 AM.png

Thank you in advance for your help!

-Jesse

The script is not clear. Try to use the ExtendScript Toolkit, which is installed with Photoshop. You use the text editor is the addition of control characters.

Tags: Photoshop

Similar Questions

Maybe you are looking for