[comp.sys.mac.programmer] changing keyboard script with Script Manager

jwwalker@usceast.UUCP (Jim Walker) (07/11/90)

The Script Manager chapter of IM-V doesn't seem real clear on things like
what a keyboard script is and how you change it.  All I want to do is make
a different KCHR control the keyboard layout.  At first reading, I thought
that the KeyScript call would do everything I wanted, but apparently not.
I ended up calling SetScript twice (once passing the resource ID of the
KCHR and once for the corresponding SICN) and then calling KeyScript with a
parameter of 0.

This seems to work, but I wish I understood it better.  For instance IM
says that SetScript "is used to set local script variables and routine
vectors..." but apparently has global effect.  Is that "local" in the sense
of "localization" rather than in the usual programmer's sense?

-- 

   Jim Walker  jwwalker@cs.scarolina.edu  76367.2271@compuserve.com