Re: Compile a string?
Re: Compile a string?
- Subject: Re: Compile a string?
- From: Sun Real <email@hidden>
- Date: Fri, 22 Jun 2001 19:03:29 +1000
G'day Andy,
Andy Wylie's message of 22/6/01 12:16 PM contained:
>
> Is there a way to compile strings using AS under OS9.x?
>
>
>
> I looked at Smile...
>
>
hey Richard, I don't understand what you're trying to do...
I thought so hard about how to phrase the question too. <sigh> I
probably should have specified that I wanted to compile a string into a
script. In any case, you did understand. Thanks for the effort. :-}
>
...but maybe this will help...
>
set x to make new script window with properties {name:"foo"}
>
set text of x to readData
>
check syntax of x
Again, thanks - that's what I was looking for. I'd been trying to get it
to open & compile my text doc.
Trying to write it out to a file without user interaction led me through
various things to this:
save x in "Trane:Desktop Folder:foo.as" -- passing a string works,
passing a file spec doesn't
Where is Smile's implementation of the Standard Suite detailed? I found
a few lines in the Help, but couldn't find a detailed description
anywhere. AppleWorks, for e.g., allows an optional 'saving in' param
which suppresses 'saving yes/no/ask' but this didn't work in Smile, as
shown.
I'm also still interested: Is there an osax (or any other free, AS
controllable tool) that will do a compile & return the resulting script
as a file or object?
Cheers,
Richard
-- Great Lies of the Music Business: "This is one of Jimi's old Strats"