Skip to main content
Inspiring
June 10, 2014
Question

How to more fully control the save dialog function.

  • June 10, 2014
  • 1 reply
  • 2712 views

Alright, first of all I don't know if what I'm asking is possible. I basically want to trigger a Save As dialog that opens to a specified folder and has custom text in the "Save As:" box, so the user can just review it and commit it. I know it's possible to do all of this through normal saveAs commands but I really need the ability to review and edit the file path and name before committing the save.

I know how to specify a folder for the save dialog to open to and I also found a gimmicky way to get my own text into the "Save As:" box by passing it as a nonexistent folder path, but I cannot get them to both happen at the same time. Any help or workaround would be greatly appreciated.

Thanks!

This topic has been closed for replies.

1 reply

JJMack
Community Expert
Community Expert
June 10, 2014

Photoshop ships with scripts that do Save As file types.  For example "Image Processor.jsx" and  "Export Layers To Files.jsx"  I would suggest looking at the code in these. I created as "SaveAs.jsx"  plug-in script for my own use with code stolen from "Export Layers To Files.jsx".

JJMack
Inspiring
June 10, 2014

Great idea, I'm fairly new to all of this stuff, so it's gonna take me a while to try and figure these out. In the meantime if there is a simple solution to getting custom default text into the saveDlg(); function that would be great.

JJMack
Community Expert
Community Expert
June 10, 2014

saveDlg(); ???  what is that? Where did you see that? Is that some applescript thing?

JJMack