Re: applescript-users digest, Vol 2 #1442 - 12 msgs
Re: applescript-users digest, Vol 2 #1442 - 12 msgs
- Subject: Re: applescript-users digest, Vol 2 #1442 - 12 msgs
- From: Brennan <email@hidden>
- Date: Sun, 30 Dec 2001 22:40:51 +0100
>
>>> Does anyone know how to get the source text of a script object - in
>
>>> applescript?
>
>>
>
>> Jon's Commands has a built-in coercion. Alternatively you could script
>
>> something like Smile to get it. I'm not aware of any vanilla method,
>
>> unfortunately.
>
>
>
>Thanks, has. Unfortunately, Jon's won't work in OS X, where I am most of the
>
>time (until Jon himself will, we're stuck). But yes, the Satimage osax,
>
>available in OS X complete with its four 'resource' commands, appears to be
>
>alive and well. I have never attempted anything with these resource
>
>commands, however, and don't really know where to start. Does the source
>
>text of a script have a particular resource number?
>
>
Well, the problem with getting a script file's scpt resource is that the
>
contents have already been compiled, so there's probably not a lot you can
>
do with it.
Interesting. What about;
property mySource : (<<class ktxt>> of (me as record)) as string
...add this to each script object and it will get stored at compile time where (hopefully) all the terminology is in place.
(This may be useless to the original poster).
--
_____________
Brennan Young
Artist, Composer and Multimedia programmer
mailto:email@hidden
"It's nice, but it's still not ready for long term production runs, because I've found that despite OSX's refusal to crash, all the apps are much more obliging and crash a lot."
-Jon Pugh