4
1
When I hit restart, after a second or two, everything closes and the machine restarts. But sometimes, within that second I realize that I really didn't want restart just then. How can I stop the machine from restarting at that time?
The best way I can figure out is to cancel a save request if something needs saving, but that isn't always the case.
and @JFW I like your suggestions, but it would be nice if I could have my shut down continue unhindered if I didn't do anything. At the moment, it seems that I would have to essentially confirm shutdown, which is not great (not as bad as shutting down just as my boss walks in requesting file X) – Ritwik Bose – 2010-08-14T17:58:17.217
1Well you could have the dialogue time out - add "with timeout 5" to the end of the "display dialog" line. That way you've got a 5 second window to click the "no" button. Anyway, if you just have the applescript's icon somewhere handy like the dock you can click it whenever you want to abort a shutdown, rather than run it every time. – stib – 2010-08-15T12:25:15.707
I'll give it a shot when I get out of bootcamp. – Ritwik Bose – 2010-08-15T22:37:23.613