• 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: Converting "scpt" resource to text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting "scpt" resource to text


  • Subject: Re: Converting "scpt" resource to text
  • From: Emmanuel <email@hidden>
  • Date: Tue, 31 Jul 2001 22:28:14 +0200

At 9:41 +0200 30/07/01, Douglas Wagner wrote:

>I've extracted a "scpt" resource from a FaceSpan project using
>Latenight's "Resource IO". I believe the result is a binary.
>
>Can anyone tell me how I might convert this to a readable form,
>within Applescript, or by using a Scripting Addition?

Smile includes the coercion of scripts to text, at different levels.

For instance, the two following scripts will return the concerned script as
a string.

--------------- script 1 - Script file -> string
script of file "Macintosh HD:Desktop Folder:Test Script" as text
---------------

--------------- script 2 - 'scpt' resource -> string
(load resource 128 type "scpt" from file "Macintosh HD:Desktop Folder:Test
Script") as text
---------------

The latest script line does not require Smile, only the free Satimage osax
(I think).

Both can be downloaded from:

<http://www.tandb.com.au/smile>

or from

<http://www.satimage-software.com>

HTH
Emmanuel


References: 
 >Converting "scpt" resource to text (From: Douglas Wagner <email@hidden>)

  • Prev by Date: Re: Size restriction on a variable?
  • Next by Date: Re: Size restriction on a variable?
  • Previous by thread: Re: Converting "scpt" resource to text
  • Next by thread: Re: Converting "scpt" resource to text
  • Index(es):
    • Date
    • Thread