Help with Photoshop scripting

Started Jul 13, 2014 | Discussions thread
Flat view
MattMatt1972 Forum Member • Posts: 87
Help with Photoshop scripting

Hi Community.

I would like a script that lets me save in tiff format in the same folder of the open document.

I found the following script which works great but it saves in jpeg but I want it to save in tif.

My knowledge of scripting is zero, I would be glad if someone could adjust the following script just to save in tif.

Thank you.....!!!!!!!


var doc = app.activeDocument;

var Path = doc.path;

var Name =\.[^\.]+$/, '');

var Suffix = "e";

var saveFile = File(Path + "/" + Name + Suffix + ".jpg");

SaveJPEG(saveFile, 8);

function SaveJPEG(saveFile, jpegQuality){

jpgSaveOptions = new JPEGSaveOptions();

jpgSaveOptions.embedColorProfile = true;

jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;

jpgSaveOptions.matte = MatteType.NONE;

jpgSaveOptions.quality = jpegQuality;

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


-- hide signature --

- M a t t e o - U r b i n o - I t a l y -
- P a n a s o n i c F Z 2 0 0

Flat view
Keyboard shortcuts:
FForum PPrevious NNext WNext unread UUpvote SSubscribe RReply QQuote BBookmark MMy threads
Color scheme? Blue / Yellow