Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An AppleScript to generate a timed shutdown' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to generate a timed shutdown
Authored by: hello1234 on Feb 17, '04 04:21:55PM
Here's a way to give the user a chance to cancel shutting down:

display dialog "The computer will be shutdown in " & time_amount & " " & ¬
my_minuten & "!" buttons {"Ok"} default button 1 giving up after dialog_timeout

delay time_amount * 60

display dialog "The computer is about to shutdown." buttons {"Ok","Cancel"} default button 1 giving up after 10

tell application "Finder" to shut down


[ Reply to This | # ]