Skip to main content
Known Participant
April 16, 2011
Question

'Save As' to JPEG format (or to TIFF)

  • April 16, 2011
  • 1 reply
  • 1427 views

The 'Save As' command produces 20 different file format options to choose from. When 'saving as' to the default PSD format, the selection is obviously quick and easy. However I mostly 'save as' to JPEG format or TIFF format and it is awkward to make the JPEG or TIFF format selections each time.

After doing 'Save As', I have been clicking on 'Format' and then typing 'j' or 'ti' to bring up JPEG or TIFF from the menu of 20 formats to speed up the selection a little bit as compared to scrolling through the Format menu.

But it would be much easier to have a script that could bring up a modified version of the "Save As" dialogue box so that 'Save As' to JPEG format or 'Save As' to TIFF format could be executed very efficiently and without having to wade through the clutter of the 17 other file formats in the Format menu which I hardly ever use.

I have done a fair amount of web searching, including on ps-scripts.com, but so far without finding a good solution to this. Any help would be much appreciated.

Of course I have thought of creating an Action (with assigned keyboard shortcut) which saves to JPEG and another Action which saves to TIFF. However, the saved file then always ends up in one location and with the same file name, therefore often requiring the additional steps of renaming and moving the file.

Batch processing of Actions (perhaps in conjunction with the Image Processor script) is perfect for batches, especially for large batches but I was hoping for something quick and easy for saving files individually.

Thanks!

Geoff

P.S. I also tried finding a way of disabling all the 'Save As' file formats which I never use so that the 'Save As' format choices would be very few (i.e. 3 or 4 instead of 20) but have had no success there.

This topic has been closed for replies.

1 reply

Known Participant
April 20, 2011

This is not a PhotoShop Function.

In the Core JavaScript Classes use the File class.

File.saveDlg( prompt, filter)

The filer parameter is the one you want.

Geoff.GAuthor
Known Participant
April 20, 2011

Thank you for your reply.

Sorry for my ignorance, but I am a scripting novice and you lost me. Would you mind explaining it in a less technical way perhaps?

Geoff

Known Participant
April 21, 2011

Assuming you know how to save a script and assuming you know how to run it and assuming you only have one document open.

The filter parameter is a semicolon ";" delimited string with more then one value wrapped in quotes of course

"*.jpg;*.psd;*.mp3"

Put the code below in your script and call it from photo shop

var file = new File( );
file.saveDlg("hello world", "*.jpg" );