Hi folks
I have a button that, when pressed:
1.) Locks a selection of fields
2.) Hides 2 different buttons
3.) Launches a Save-As dialgoue
4.) Hides the button preforming all of this.
Everything is working great, but I have noticed that if the user presses "cancel" on the save-as dialogue, the script continues to run. This would be fine except that now all the buttons are hidden and there is no way for the user to "re-run" the script. The first action is javascript and the second, third, and forth actions are actual built in actions. Is there a way to script this so that Action 4 does not happen unless the user successfully saves their file?
I think I can figure everything out, if someone can just help me figure out a test to know if the file was successfully saved or if the dialog was canceled.
Thanks! I have found SO many answers on this forum! You guys rock!
So if saveAs is completed, and no other changes are made, this.dirty should return false.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com