You could try something like this:
<script steps to get you to A)>
Enter Preview Mode (Pause)
Show Custom Dialog [ "Do you want to email the PDF?" ; buttons: "No" ; "Yes" ]
If ( get ( lastmessagechoice ) = 2 // assuming 2nd button is "Yes" )
<create the PDF> //I'm assuming you already have this bit done
<email PDF> //I'm assuming you already have this bit done
<something else; may not be necessary>
Enter Browse Mode
Go To Layout [ original layout ]
There is a keyboard option. If the 'Allow User Abort' is on, the user can press the Escape key or type cmd-period [⌘.] on OS X.1 of 1 people found this helpful
This would be something I would like to know, as I am doing something similar.
The only other option I could think of was to create a custom menu for that layout where the user can either do a keyboard shortcut or go up to the top and click a Menu option that would run whatever needed script to stop it.
Haven't done it, yet, because I was hoping a better option would come to me.
(Rather than have things in Browse Mode, and creating a button on the layout that won't show when printing)
Thanks for your comments, I will work through your suggestion..so cheers
Thanks jml for your comment, keyboard option this may be good for an extra option.
Yes using Menu concept is an idea, but I would think there is a smoother method..thanks for your imput appreciated