use UI Scripting to hit escape key

Who knows the key code for the escape key? Or is there another way of achieving the same effect. Basically, I have a script that runs, but if there’s an error, I want to quit an application it uses, namely DVD Studio Pro 3. Since DVD Studio Pro isn’t scriptable, I thought It would be easiest to force quit. I don’t want anything saved when quitting. So I thought I’d simulate hitting option command esc, and force quit. Please help if you can. Thanks.

Try:

previously make the app you want active

all best,
pschmch
[/quote]