jump to navigation

Shutdown Timer Apple Script January 4, 2009

Posted by Steven in In-Media.
Tags: ,

Again some software does not shut down Mac OS X properly. Fortunately there is a built in systematic that facilitates the shutdown properly:

  • Open “Script Editor”
  • Paste the script Source Code
  • Save as format: “Application Bundle”

tell application "Finder"
delay 120
shut down
end tell

The units are in seconds. Here are some examples:

30 minutes: 1800
60 minutes: 3600
90 minutes: 5400

There is also a terminal command that will execute the same functionality:
sudo shutdown -h +60
osascript -e 'tell application "System Events" to shut down'
This will shutdown the system.
Further information can be found here: Apfeltalk.



No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


technology and life hacking

CodeinWP Blog

Designer's guide to WordPress

Elegant Themes Blog

technology and life hacking


technology and life hacking