Jump to content

FileSaveDialog() Question...


RealisT
 Share

Recommended Posts

When using the FileSaveDialog with the flag set to 16 (Prompt to Overwrite), how is the script to know which option here (Yes or No) was chosen?

This value is not returned by either FileSaveDialog or by @error. Since this is a prompt, I cannot run any other script at the same time to see which button was clicked. Is there some other variable I should be monitoring for this?

Here is the line on my script:

$savePicAs = FileSaveDialog( "Save Image", $saveDir, "Images (*.bmp;*.jpg;*.jpeg;*jpe)", 16, saveFileName())

What code comes after this to determine whether or not the script is to Overwrite the file specified in FileSaveDialog?

Link to comment
Share on other sites

There's no need to know.

If the user has chosen No, the dialog stays open and lets the user pick another filename. If the user has chosen Yes, the dialog closes and returns you that filename.

"be smart, drink your wine"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...