Sign in to follow this  
Followers 0
RealisT

FileSaveDialog() Question...

3 posts in this topic

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?

Share this post


Link to post
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"

Share this post


Link to post
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.

Thanks for making that clearer!

Share this post


Link to post
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
Sign in to follow this  
Followers 0