On 6/4/09 7:30 AM, "Peter J. Hartmann" wrote:

> is there a coercion to convert a script object to text?
> Previously, it seems, it was possible to load a script from a file and
> coerce it to a string using "as string" or "as text".
> 
> Does not seem to work anymore.
> 
> Any clues?

Peter, if you're okay with calling a shell script, this works:

set scriptToDecompile to "Mac HD:Full:PathTo:TheScript"
do shell script "osadecompile " & quoted form of ¬
    POSIX path of scriptToDecompile

HTH,
Stan C.