Jump to content

Getting around a canceled print script step.


This topic is 7010 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have a problem with a script that I wrote. One of the steps is a print step. The problem is that when it stops to ask how many pages to print etc, if they click cancel it asks them if they want to continue with the script. The problem is that lots of people click cancel and then they get stuck in find mode or somewhere that they don't know how to get out of.

Is there a way I can use an If statement to just go back to a layout if they hit cancel in the print window? I was thinking Get (LastError) but I'm not sure about that.

Thanks

Link to comment
Share on other sites

Chris:

Does setting Error Capture on catch a canceled print step? I think if you do this is it will work:

Set Error Capture [on]

Print []

If [Get (Last Error)=1]

Show Custom Dialog (whatever you want here) // or Halt Script or whatever

End If

-Stanley

Link to comment
Share on other sites

Chris:

Set Error Capture [on] should only capture an error generated by the next script step, so there's no need to turn it off - perhaps that's changed in 7, but I don't think so.

-Stanley

Link to comment
Share on other sites

This topic is 7010 days old. Please don't post here. Open a new topic instead.

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.