Help with Photoshop scripting

Started 1 month ago | Discussions thread
ForumParentFirstPreviousNextNext unread
Flat view
MattMatt1972
Forum MemberPosts: 53
Like?
Help with Photoshop scripting
1 month ago

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.....!!!!!!!

Matt

var doc = app.activeDocument;

var Path = doc.path;

var Name = doc.name.replace(/\.[^\.]+$/, '');

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
-

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