Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

tombarnes

macrumors 6502
Original poster
Feb 26, 2006
348
1
Surrey, United Kingdom
Hi all,

I, for some reason, would like to add a shutdown and sleep button to my dock, preferably over next to the trash can.

I have looked at automator and can't see anything that would let me do this. So, I am turing to you guys. Anyone done it? Anyone know how? I can't see from my google searches that anyone has done this.

Any thoughts?

-Tom
 
AppleScript does the trick.

Code:
tell application "Finder"
	shut down
end tell

You have to save it as an app, however, which means that it must remain to the left of the white line.

mt
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.