Mar
13
2008
In Part 1 of this series I walked through the steps to install rb-appscript, a scripting bridge that provides an alternative to AppleScript for controlling scriptable applications on a Mac.
My intention in exploring an alternative was to find an option for scripting beyond AppleScript itself and to rewrite an AppleScript program that I was currently using. The original AppleScript code was written to turn down the volume upon shutdown, to enable a silent bootup process. You can read the who, what and why in the original post.
Continue reading...
Mar
12
2008
AppleScript is a scripting language that provides the ability to control “scriptable” applications on a Mac. AppleScript provides an interface to the Apple Event messaging architecture, the means by which applications communicate with one another as well as the underlying OS.
Continue reading...
Mar
11
2008
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! 
Continue reading...
Mar
04
2008
In general, the chime upon startup of my Macbook Pro is welcome. However, there are those times that I’d rather much rather boot up in silence, such as a meeting or other relatively quiet event. I’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).
Click here to paste the code below into the Mac Script Editor
tell application "Finder"
display dialog "What would you like to do?" buttons
{"Shutdown", "Restart", "Cancel"}
default button "Shutdown" with icon caution
if button returned of result is "Shutdown" then
set volume 0
shut down
else if button returned of result is "Restart" 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.