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: Interapplication Communication /
Chapter 10 - Scripting Components / Scripting Components Reference
Optional Scripting Component Routines


Manipulating Dialects

Scripting components that provide several dialects may provide five functions that allow you to switch between dialects dynamically and get information about currently available dialects. The codes for specific dialects are provided by the scripting component.

The OSASetCurrentDialect function sets the current dialect, and the OSAGetCurrentDialect function gets the dialect code for the current dialect. The OSAAvailableDialectCodeList function returns a list of codes for a scripting component's dialects. You can pass any of these codes to the OSAGetDialectInfo function to get information about a specific dialect.

Instead of using the OSAAvailableDialectCodeList and OSAGetDialectInfo functions, you can use the OSAAvailableDialects function to get a descriptor list that contains information about all of the currently available dialects for a scripting component. However, it is usually more convenient to get information about just one dialect.

A scripting component that supports the functions described in this section has the kOSASupportsDialects bit set in the componentFlags field of its component description record.


Subtopics
OSASetCurrentDialect
OSAGetCurrentDialect
OSAAvailableDialectCodeList
OSAGetDialectInfo
OSAAvailableDialects

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996