Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

error on this line ...

$
0
0

Hello everyone
In this script ExtendScript indicates an error but I can not understand which one.
I am under CS6 on mac.
If anyone sees or is the problem ... thanks

JL

 

function SaveJPEG(saveFile, jpegQuality){  

var doc = activeDocument;  

if (doc.bitsPerChannel != BitsPerChannelType.EIGHT) doc.bitsPerChannel = BitsPerChannelType.EIGHT;  

jpgSaveOptions = new JPEGSaveOptions();  

jpgSaveOptions.embedColorProfile = true;  

jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;  

jpgSaveOptions.matte = MatteType.NONE;  

jpgSaveOptions.quality = jpegQuality;   

      activeDocument.saveAs(saveFile, jpgSaveOptions, true,Extension.LOWERCASE);  >>error on this line !?

app.activeDocument.close(SaveOptions.DONOTSAVECHANGES)

};


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>