Re: osacompile decompile
Re: osacompile decompile
- Subject: Re: osacompile decompile
- From: Emmanuel <email@hidden>
- Date: Wed, 13 Jul 2005 18:07:31 +0200
At 11:00 AM -0500 7/13/05, Laine Lee wrote:
In Panther I could decompile a compiled script file to text like this:
osacompile -o destinationfilename.applescript -dt -TEXT scriptfilename.scpt
Now in Tiger it just yields the concatenated version of the data fork
(jibberish).
How can I do it in Tiger? Thanks.
If using Smile can be part of the solution, I think the following works.
tell application "Smile" to get (script of file the_file)
This returns the formatted source as styled text. Say "as text" or
"as Unicode text" if you don't want the styles. Note that the command
is "script of file" (not just "script of".)
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden