Re: Unloading Coercions
Re: Unloading Coercions
- Subject: Re: Unloading Coercions
- From: John W Baxter <email@hidden>
- Date: Wed, 21 Mar 2001 20:39:04 -0800
>
Hi
>
>
If after a reboot OSAXen that install coercions are removed from the
>
Scripting Additions folder and a script is recompiled, does that make the
>
script no longer use the coercions?
>
>
Also, does there exist a method to determine what coercions an OSAX
>
installs?
Look at (a copy of) the Scripting Addition file in ResEdit. Look at the
names of the 'osax' resources.
The event handler names start with AEVT (and continue with the event class
and event id).
The two kinds of coercions have names starting with CSDS or CSPT (the
difference can be ignored except by those writing the things, and those
calling them other than by writing AppleScript statements which trigger
them). The from and to types follow--four bytes each...so a CSDS sort of
coercion from TEXT to magn would be named
CSDSTEXTmagn
[magn is an unsigned 4 byte number...used by things other than AppleScript].
Page 87 of the original printed AppleSript Scripting Additions Guide...I
don't know what page it may have moved to in the currently online version.
--John
--
John Baxter email@hidden Port Ludlow, WA, USA