An AppleScript to Launch Front Row ¬

2007-08-26

A friend wanted to Launch Front row by pressing the programmable button on his new LaCie D2 Quadra hard drive, but the software wasn’t letting him program a keystroke, so I whipped up the following AppleScript to press Command-Escape for him and so launch Front Row. I’m sure there are plenty of other solutions out there or maybe even this same one, but here it is anyway:

tell application "System Events"
	key code 53 using command down
end tell

Save it as an application (preferably “run only” without a “startup screen”) in your ~/Applications folder if you want to launch it as an app, or in ~/Scripts if you want to launch it from the Script Menu or Quicksilver.

For more information on using the key code AppleScript command, check out the System Events, Key Code and Keystroke article over at Doug’s AppleScripts for iTunes.

  Textile help