Macos – Quick Mac OS X shut-down icon


How would I create an icon on my Mac OS X desktop, to do a "shut down"?
(With… or without… the "are you sure" verification.)

Best Answer

Open AppleScript Editor.

Paste in the following code:

tell application "Finder" to shut down

AppleScript Editor

Click File ยป Save, save it to the Desktop, selecting File Format: Application.

If you've saved it as the correct format, the icon should look like this:

Applescript Application

Related Question