I used a script to save a file on a certain path C:\Users\abcde\Desktop\temp, with adding unique numbers(think do texts through dialog box), until'm hammering manually each time.
So the script worked-worked... and then stopped, to speak omitted symbol of ")", although all is true. What's wrong?
Code: Select all
var strtRulerUnits = app.preferences.rulerUnits;
app.preferences.rulerUnits = Units.MM;
var docRef = app.activeDocument;
filePath = docRef.path;
var fileName = docRef.name.slice(".")
var W = Math.round(docRef.width);
var H = Math.round(docRef.height);
function SaveAsTIFF( saveAsName ) {
var tso = new TiffSaveOptions();
tso.embedColorProfile = false;
tso.imageCompression = TIFFEncoding.NONE;
tso.byteOrder = ByteOrder.IBM;
docRef.saveAs( File( saveAsName ), tso );
}
SaveAsTIFF ( C:\Users\abcde\Desktop\temp + ("001_" + W +"x" + H + "mm_" + fileName));
docRef.close(SaveOptions.DONOTSAVECHANGES); //Fermer sans sauver
app.preferences.rulerUnits = strtRulerUnits;