System.Keyscript

Allows you to get and set the keyboard script. The values are the values for script systems, e.g., 0 for MacRoman, 1 for MacJapanese, etc.

Syntax
Keyscript( Integer ) as

Parameters
Integer |

# Notes

In addition, you can assign negative numbers to get various special effects, e.g., assign -1 to switch to the next layout in the Keyboard menu. For more information, see:

http://developer.apple.com/techpubs/mac/Text/Text-386.html