newbie question: modifier keys

i have been exploring airclick usb:
besides it’s built-in option to run itunes (and many other apps), i’ve modified some of it’s applescripts to run some functions
in my music apps (reason, logic).

not bad for a novice. :smiley:

but i want to script the following:

command-1

command-2

how do i do this? (i want to change the reason window from sequencer to rack).
or do i need to know the “virtual key code”…and how do i figure that out?? :frowning:

thanks!
glad i found this site…

Model: 12" alubook 1.33g
AppleScript: 2.1.1
Browser: Safari 416.12
Operating System: Mac OS X (10.4)

Try this, fisherking:

tell application "System Events" to tell process "Target" -- enter the name of the target application process here
	set frontmost to true
	keystroke "1" using command down
end tell

got it…thanks much! :cool:

(would never have figured that out on my own…)

great forum!