Re: Compile a string?
Re: Compile a string?
- Subject: Re: Compile a string?
- From: Andy Wylie <email@hidden>
- Date: Fri, 22 Jun 2001 14:16:31 +1200
on 22/6/01 10:13 am, Sun Real at email@hidden wrote:
>
Is there a way to compile strings using AS under OS9.x?
>
>
I looked at Smile, but could only get it to open text files in text
>
windows.
>
hey Richard, I don't understand what you're trying to do but maybe this for
will help...
set readPath to navchoose file of type "TEXT"
try
set readPath to open for access file readPath
set readData to read (readPath)
close access readPath
on error
try
close access readPath
on error
error "$#!%"
end try
return 0
end try
set x to make new script window with properties {name:"foo"}
set text of x to readData
check syntax of x
_____________________________ Andy