Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 6 - Script Manager / About the Script Manager


The Script Manager and Applications

The Script Manager is your application's principal interface--either direct or indirect--with any of the script systems that may be available on the user's computer. For many text-related tasks, the Script Manager's role is transparent; when you make a script-aware Text Utilities or QuickDraw call while processing text, that routine may get the information it needs through the Script Manager. For example, when you call the QuickDraw procedure DrawText to draw a line of text, DrawText in turn calls the Script Manager to determine which script system your text belongs to before drawing it.

In other situations you may need to call the Script Manager explicitly, to properly interpret the text you are processing. Those situations are the principal subject of this chapter.

The Script Manager provides services that fall into four general categories: controlling settings, obtaining information, modifying text, and modifying script systems. Any text-handling application that you write, unless it relies solely on TextEdit, will need to use some of those services. Almost any text application, for example, needs to call the GetScriptManagerVariable function. Other calls are for specialized programs only. The IntlTokenize function, for example, is only for specialized programs that parse highly structured text such as source code, mathematical expressions, or formatted numbers.

These are the services provided by the Script Manager in each of the four categories:


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996