• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unloading Coercions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unloading Coercions


  • Subject: Re: Unloading Coercions
  • From: John W Baxter <email@hidden>
  • Date: Fri, 23 Mar 2001 15:18:07 -0800

At 23:32 -0600 3/22/01, Ehsan Saffari wrote:
>On Wed, 21 Mar 2001, John W Baxter <email@hidden>, wrote:
>
>>>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
>
>Thank you. That's page 85 of the online PDF version. But things have
>changed. Looking at standard additions 1.3.7 that ships with MacOS8.6 in
>resedit, there is no 'osax' resource (apparently that has been moved to
>the data fork),the 'osiz' res is where one can get clues about the
>coercions (CSDS).
>
>cheers
>ehsan
>_______________________________________________

Thanks for the reminder. I've never written a native scripting addition
(and likely never will; nor will I be writing any for Mac OS X). Hence I
forgot.

--John
--
John Baxter email@hidden Port Ludlow, WA, USA


  • Prev by Date: Akua display selector
  • Next by Date: Re: get handler name
  • Previous by thread: Re: Unloading Coercions
  • Next by thread: Re: Unloading Coercions
  • Index(es):
    • Date
    • Thread