Jump to content
Salesforce and other SMB Solutions are coming soon. ×

exit when cancel....help!!!

Rick Edwards

Recommended Posts

Here is a script I'm trying to run:


If ["Status(CurrentFileName) = "temp_2x3""]

Save a Copy as [ ]

Open [ ]


Go to Record/Request/Page [First}

End if



I would like to know how to exit the script if the user hits the "cancel" button on the Save A Copy As dialog box.





Link to comment
Share on other sites



Yes, is the answer to your question with a few minor modifications to your script.


Add the script step: Set Error Capture [On] at the very beginning of your script.


Then After the Save a Copy as step enter the following:


If ["Status(CurrentError)=1"]

Exit Script

End If


This should do it.

Link to comment
Share on other sites

  • 5 weeks later...
This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Terms of Use