Is it possible to make an AppleScript application run in the background and when you press a keystroke, it displays say… a dialog or does something?
Model: MacBook Pro
AppleScript: 2.1.2
Browser: Google Chrome 5.0.342.9
Operating System: Mac OS X (10.6)
Thanks for the link, but unfortunately it doesn’t really help me. The scripts on there don’t even work on my mac (10.6.3) 
Model: MacBook Pro
AppleScript: 2.1.2
Browser: Google Chrome 5.0.342.9
Operating System: Mac OS X (10.6)
What I meant was: there are no reliable ways of having a running script respond to a keystroke in AppleScript
Ah well…
Thanks for your help anyway Adam 
I use ControllerMate to kick-off AppleScripts. I use it with an X-Keys keypad, but it can use F-keys or even wait for modifier+keystroke input as well. Pretty much any USB input device. You can embed the AppleScripts in ControllerMate, or have them externally compiled.
Check the link again.
http://macscripter.net/viewtopic.php?id=32830
The question you’re trying to answer (about keystrokes at least) has, for the most part, been answered now.