home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-12-05 | 1.7 KB | 41 lines | [TEXT/R*ch] |
- Switch Keyboard is an OSAX (AppleScript Scripting Addition)
- that switches to the next keyboard in the current Script
- System. This is equivalent to pressing Command-Option-Space
- on the keyboard, or choosing the next entry in the list of
- keyboard layouts from the Keyboard control panel.
-
- The reason it works this way, rather than letting you specify
- the keyboard you would like to use, is because this is the
- only way to switch keyboards that I can find in the Mac OS.
- This means you will have to keep track of the active keyboard
- within your own script, e.g. by counting the number of times
- Seitch Keyboard is called and by knowing beforehand which
- keyboards are installed in your system.
-
- Switch Keyboard is distributed as freeware. It may be freely
- distributed as long as no charge is levied for it's
- distribution, excepting normal downloading charges from a BBS
- or online service. It may not be included in any commercial
- product without my explicit prior permission, with the
- exception of shareware/freeware CD-ROMs, where it may be
- included provided I receive a copy of the finished CD-ROM.
-
- John Blackburne
- johnb@tempest.net.hk
- 14th August 1995
-
- ------------------------------------------------------------
-
- Project notes:
- 1) Switch Keyblard now part of OSAX 'JWB Utilties', distibuted
- as 'screenmode' utility.
- 2) The AppleEvent parameters are unused in this example as the
- OSAX takes no parameters and returns no results. I'm not sure
- what the RefCon parameter does.
- 3) 'osax' resource name more important than it's ID. Only other
- resource needed is 'aete' resource which describes AppleScript
- interface to OSAX code.
- 4) the code for the 'screenmode' osax is not available.
-
- John, 5 Dec 1995
-