RealisT Posted January 28, 2008 Share Posted January 28, 2008 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 More sharing options...
Siao Posted January 28, 2008 Share Posted January 28, 2008 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 More sharing options...
RealisT Posted January 28, 2008 Author Share Posted January 28, 2008 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now