Re: Converting "scpt" resource to text
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