It’s been a long wait, however, as of today you can now get your hands on the latest update to the AppleScript Language Guide. The copy that I’ve been using for the past 6 months is dated 1999. Yikes!

Read more »

One thing I was accustomed to when working on Windows, was copying a section of a webpage and pasting the same into a Word document. Word did a pretty good job of keeping the formatting intact, including images, fonts and the like. This trick is handy when you want to print only a portion of a webpage.

You can get there from here on a Mac, albeit with a different approach as to the internal implementation.

Read more »

In a previous post I wrote about the Fink package manager. MacPorts is another popular tool for installing and managing open source software on Mac OS X. There are a number of overlaps with the two packages, however, they are not one in the same.

Read more »

How cool is this? Thanks to Stephen Morley you can create the Mac OS X dock effect of icons expanding as you mouse over them using JavaScript. In the range of 130 lines of code, Stephen has crammed some serious image processing code. To fully appreciate this, you have to visit the demo page.

Read more »

There are times when the default unix tools installed on Mac OS X fall short. For instance, wget which is used to download files over the web using http, https, and ftp, is not available “out-of-the-box.”

Fink is one of several package managers available for Mac OS X that make it easy to download and install any number of software applications/tools.
Read more »

If you are ever in need of a simple (free) clipboard manager, I recommend you check out Jumpcut. This application works quietly in the background, saving each text copy into an internal buffer. When you want to paste information, click the icon on the menu bar and you’ll see a list of recently copied text, choose the one you like and you’re good to go…

Having the ability to copy/paste multiple lines of code, from multiple source files, has come in handy many times.

In the image below you can see the menu bar icon for Jumpcut, along with a list showing my four most recent entries copied into the clipboard.

One other really nice thing about Jumpcut is that it’s open source. If you are looking to learn about Cocoa development, specifically one which pokes around with some interesting system stuff, give Jumpcut a look.

For those who are new to working with Unix, I want to take a moment to introduce aliases. The simplest means to think of an alias is as a text shortcut, used inside a Terminal window, to represent one or more commands. On second thought, maybe that isn’t the simplest means to describe an alias. Let me try again using an example…

Read more »

One of the joys of working on a Unix system is the ability to tweak various system settings, even better when you can do so from a command-line shell (terminal). The means to get there on Mac OS X is the defaults command. Using defaults you can read, write and delete various application and system preferences.

Read more »

In general, the chime upon startup of my Macbook Pro is welcome. However, there are those times that I” onclick=”return TrackClick(”,’applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell’)”d rather much rather boot up in silence, such as a meeting or other relatively quiet event. I” onclick=”return TrackClick(”,’applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell’)”ve found myself in that situation more times that one would expect and needed a way to work around this. Applescript is one approach.

What follows are two short applescripts, one to mute the volume on shutdown/restart, and one to reset the volume at bootup. I run the first script when I want to shutdown my machine (in place of using the system menus to accomplish the same).

 onclick= Click here to paste the code below into the Mac Script Editor

tell application " onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')")"Finder" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')")"
  display dialog " onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')")"What would you like to do?" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')")" buttons
      {" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')")"Shutdown" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')")", " onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')")"Restart" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')")", " onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')")"Cancel" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')")"}
      default button " onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')")"Shutdown" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')")" with icon caution
  if button returned of result is " onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')")"Shutdown" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')")" then
    set volume 0
    shut down
  else if button returned of result is " onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')")"Restart" onclick="return TrackClick(" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"," onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')"applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell" onclick="return TrackClick('','applescript%3A%2F%2Fcom.apple.scripteditor%3Faction%3Dnew%26amp%3Bscript%3Dtell%2520application%2520%2522Finder%2522%250A%2520%2520display%2520dialog%2520%2522What%2520would%2520you%2520like%2520to%2520do%253F%2522%2520buttons%2520%257B%2522Shutdown%2522%252C%2520%2522Restart%2522%252C%2520%2522Cancel%2522%257D%2520default%2520button%2520%2522Shutdown%2522%2520with%2520icon%2520caution%250A%2520%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Shutdown%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520shut%2520down%250A%2520%2520else%2520if%2520button%2520returned%2520of%2520result%2520is%2520%2522Restart%2522%2520then%250A%2520%2520%2520%2520set%2520volume%25200%250A%2520%2520%2520%2520restart%250A%2520%2520end%2520if%250Aend%2520tell')")" then
    set volume 0
    restart
  end if
end tell

I saved the code as an application with the name ShutdownScript, and set the Run Only option. I then placed this application in the Dock. When run, the dialog below is shown:

The code to set the volume at boot time is all of one line:

set volume 5

As before, I saved this as an application and this time I added it to the login items so it is run whenever I boot my system.

You can also change the icon that appears by replacing to caution to either note or stop. The results are shown below:

With these short scripts, you can now boot up in silence.