keystroke in another language

I’m trying to enter a keystroke using:

tell application “System Events” keystroke “b” end tell

This works fine. However, if the keystroke is in another language, it just types an “a”. I thought Applescript handles unicode chars? How can I get this to work with other languages?


Hi, Try this (just a guess)…

tell application "System Events"
	keystroke (ASCII character 98)
end tell

-- or this...

tell application "System Events" to keystroke (ASCII character 98)


Browser: Safari 528.16
Operating System: Mac OS X (10.5)