Copy link to clipboard
Copied
How can I include default file name in saveDialog scripting?
File.saveDialog("Title","Save As Type:*.png");
1 Correct answer
Thank you so much. It helped. I was asking for saveDlg. so I modified your code like below and it worked.
new File("Default File Name").saveDlg(["Title"],["PNG Files:*.png"]);
Thank a lot.
Copy link to clipboard
Copied
the file object has a openDlg method. It differs from the class method
openDialog() in that it presets the current folder to this File object’s parent folder and the current
file to this object’s associated file.
new File("path/to/defaultFile.txt").openDlg([prompt][,filter][,multiSelect]);
(also works when the file does not exist)
Copy link to clipboard
Copied
Thank you so much. It helped. I was asking for saveDlg. so I modified your code like below and it worked.
new File("Default File Name").saveDlg(["Title"],["PNG Files:*.png"]);
Thank a lot.
Copy link to clipboard
Copied
Is there a way to make this work on MacOS? I think this only works on windows...
Copy link to clipboard
Copied
It works the same. Just tested.

