Newbie Help with Keycommands

This is most likely the wrong place to post this, please moderators move it if necessary.

I’ve been looking around for guides and such on internet regarding AppleScript. I saw many nice things, but not what I was looking for.

It should all be very simple really. I would like to know how to make a script run a certain key command, an example:

Make it open the Force Quit window (Command+Option+Escape).

Thanks In Advance.

-Heinrich H.

Hi - You should download Full Key Codes 1.1…

try this…

tell application "System Events" to key code 53 using {command down, option down}

btw, if you want the Force Quit Applications dialog box come to the front make the compiled script a background app.
or try this…

tell application "Finder" to activate
tell application "System Events"
	tell process "Finder" to key code 53 using {command down, option down}
end tell


Operating System: Mac OS X (10.5)