Re: Re: get handler name
Re: Re: get handler name
- Subject: Re: Re: get handler name
- From: Richard 23 <email@hidden>
- Date: Sun, 25 Mar 2001 00:54:25 -0800
>
Hmmmm, what is wrong with your AppleScript? It works fine on my home(2) and
>
work machines(3). OS 9.0.4 and AS 1.4.3 limited osax. And it works in the
>
Generic Script Editor too. Maybe it just doen't like to work on Fridays : -)
Jon's Commands I presume? It provides the very useful scpt to anything
coercion that allows you to get script and handler source (same thing,
really...script context) as text. I wrote a number cool doodads with
it. I've got a number of different script summarizers. They parse
the script's source returning handler declarations, globals, properties
and then recursively walk any contained script objects for the same
report. Dunno why they don't include that capability in plain
AppleScript.
The AppleEvent Manager and Script Editor do this all the time to save,
load, run and compile scripts. A simple call to OSAGetSource with the
desired type set to "STXT" and you're done.
But not from within AppleScript. Well not without Jon (or FaceSpan).