Verbs for GetScript and SetScript
Verbs for GetScript and SetScript
Every Apple-supplied Macintosh script system supports the verbs listed in
the Table below for the GetScript and SetScript functions. If you provide or
create a script system, you should also support these verbs.
With version 7.0, each script system's local variables contain fields that
supply the following information pertaining to that script: default mono spaced
font and its size, user-preferred font and size, default small font and size,
system font and size, application font and size, and Balloon Help font and size.
The 'FOND' ID is stored in the high word, and the size is stored in the low word.
Sizes are important; for example, a 9-point font may be too small in Chinese.
The Table below lists the new GetScript and SetScript verbs for retrieving
font information.
With version 7.0, each script system's local variables contain fields that
specify relevant style information for the script. When GetScript is called
with the smScriptValidStyles verb, the low-order byte of the returned value is
a style mask that includes all of the valid styles for the script. The bit
corresponding to each QuickDraw style is set if that style is valid for the
specified script. When GetScript is called with the smScriptAliasStyle verb,
the low-order byte of the returned value is the style that should be used in
that script for indicating alias names (for example, in the Roman script, alias
names are indicated in italic). The following Table lists the new SetScript
and GetScript verbs for retrieving style information.
Table: GetScript and SetScript verbs
Local
variable
size
Verb (in bytes) Meaning
smScriptVersion 2 Script system version number
smScriptMunged 2 Local variables modification count
smScriptEnabled 1 Script- enabled flag
smScriptRight 1 Right-to-left flag
smScriptJust 1 Script alignment flag
smScriptRedraw 1 Word redraw flag
smScriptSysFond 2 Preferred system 'FOND'
smScriptAppFond 2 Preferred application 'FOND'
smScriptBundle ÍBeginning of verbs for 'itlb' section
smScriptNumber 2 Script 'itl0' ID from 'itlb'
smScriptDate 2 Script 'itl1' ID from 'itlb'
smScriptSort 2 Script 'itl2' ID from 'itlb'
smScriptFlags 2 Script flags from 'itlb'
smScriptToken 2 Script 'itl4' ID from 'itlb'
smScriptEncoding 2 Optional script 'itl5' ID from 'itlb'
resource
smScriptLang 2 Current language for script from
'itlb' resource
smScriptNumDate 2 Number (high) and date (low)
format bytes from 'itlb'
resource
smScriptKeys 2 Script default 'KCHR' ID from 'itlb'
smScriptIcon 2 Script default 'kcs#', 'kcs4', and
'kcs8' IDs from 'itlb' resource
smScriptPrint 4 Script printer action routine
smScriptTrap 4 Trap entry pointer
smScriptCreator 4 Script file creator
smScriptFile 4 Script filename
smScriptName 4 Script name
smScriptMonoFondSize* 4 Default 'FOND' and size for
mono spaced text
smScriptPrefFondSize* 4 User's preferred 'FOND' and size
smScriptSmallFondSize* 4 Default 'FOND' and size for small
text
smScriptSysFondSize* 4 Default system 'FOND' and size
smScriptAppFondSize* 4 Default application 'FOND' and size
smScriptHelpFondSize* 4 Default 'FOND' and size for Balloon
Help
smScriptValidStyles* 1 Set of all valid styles for script
smScriptAliasStyle* 1 Style to use for indicating aliases
* New with system software version 7.0