• 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: osacompile decompile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: osacompile decompile
      • From: Laine Lee <email@hidden>
References: 
 >osacompile decompile (From: Laine Lee <email@hidden>)

  • Prev by Date: osacompile decompile
  • Next by Date: Re: How do you get iCal to run an Applescript
  • Previous by thread: osacompile decompile
  • Next by thread: Re: osacompile decompile
  • Index(es):
    • Date
    • Thread