February 4, 200521 yr 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
February 4, 200521 yr 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
February 4, 200521 yr Author That works. I was missing the Set Error Capture part. Do you know if I need to trn that off again in the same script?
February 4, 200521 yr 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
Create an account or sign in to comment