keystroke problem

hi guys,

I’m a newApple Script developer and i’d like to know how to simulate the pressing of the down arrow key. In fact i’d like to integrate in my code a line that would simulate the fact that i press on the down arrow.

I tried :

but this doesn’t work while

works

Please help me !!!
Thanks

Jeff

sorry, but i don’t believe that it’s possible to do that with applescript. i may be wrong, but unless the NSObject you currently have selected supports using the arrow keys, it will just beep at you, signaling that you can’t use it. Anybody who knows differently can correct me, but that is how i understand it

Some apps will support this:

tell application "System Events" to keystroke (ASCII character 28) --> left arrow
tell application "System Events" to keystroke (ASCII character 29) --> rigth arrow
tell application "System Events" to keystroke (ASCII character 30) --> up arrow
tell application "System Events" to keystroke (ASCII character 31) --> down arrow