home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Add-Ons / AppleScript / Switch Keyboard / Switch keyboard notes < prev    next >
Encoding:
Text File  |  1995-12-05  |  1.7 KB  |  41 lines  |  [TEXT/R*ch]

  1. Switch Keyboard is an OSAX (AppleScript Scripting Addition)
  2. that switches to the next keyboard in the current Script
  3. System. This is equivalent to pressing Command-Option-Space
  4. on the keyboard, or choosing the next entry in the list of
  5. keyboard layouts from the Keyboard control panel.
  6.  
  7. The reason it works this way, rather than letting you specify
  8. the keyboard you would like to use, is because this is the
  9. only way to switch keyboards that I can find in the Mac OS.
  10. This means you will have to keep track of the active keyboard
  11. within your own script, e.g. by counting the number of times
  12. Seitch Keyboard is called and by knowing beforehand which
  13. keyboards are installed in your system.
  14.  
  15. Switch Keyboard is distributed as freeware. It may be freely
  16. distributed as long as no charge is levied for it's
  17. distribution, excepting normal downloading charges from a BBS
  18. or online service. It may not be included in any commercial
  19. product without my explicit prior permission, with the
  20. exception of shareware/freeware CD-ROMs, where it may be
  21. included provided I receive a copy of the finished CD-ROM.
  22.  
  23. John Blackburne
  24. johnb@tempest.net.hk
  25. 14th August 1995
  26.  
  27. ------------------------------------------------------------
  28.  
  29. Project notes:
  30. 1) Switch Keyblard now part of OSAX 'JWB Utilties', distibuted
  31. as 'screenmode' utility.
  32. 2) The AppleEvent parameters are unused in this example as the
  33. OSAX takes no parameters and returns no results. I'm not sure
  34. what the RefCon parameter does.
  35. 3) 'osax' resource name more important than it's ID. Only other
  36. resource needed is 'aete' resource which describes AppleScript
  37. interface to OSAX code.
  38. 4) the code for the 'screenmode' osax is not available.
  39.  
  40. John, 5 Dec 1995
  41.