Re: Export as script
Re: Export as script
- Subject: Re: Export as script
- From: Greg Strange <email@hidden>
- Date: Sat, 18 Nov 2000 10:27:07 +0000
on 11/18/00 4:12 AM, Paul Berkowitz at email@hidden wrote:
>
On 11/17/00 12:11 PM, "Greg Strange" <email@hidden> wrote:
>
>
> Can anyone direct me to some info about exporting text as a compiled
>
> AppleScript? I want to take a sceries of text inputs and put them into a
>
> completely separate script. So for instance,
>
>
>
> set outScript to "tell application \"Finder\"" & return & "display dialog
>
> \"Hello World!\"" & return & "end tell"
>
>
>
> open for access file "outScriptFile" with write permission
>
> write outScript to file "outScriptFile"
>
> close access file "outScriptfile"
>
>
>
> I have tried changing the file and creator types to a compiled script but
>
> when I try and launch it, it fires off another script on the desktop.
>
>
>
> Anyone have any ideas?
>
>
You could get Smile, which is scriptable. The script below will do what you
>
want when run from another Smile text or script window. It doesn't even need
>
'tell application "Smile"', although with the tell block, you could even run
>
it from Script Editor.
I was hoping to stay away from everything else except plain ol' Script
Editor and (mostly) vanilla scripting.
What I was trying to do for a client was write a script that helped them
learn the fundamentals of applescripting using mostly pull-down menus and
some text fields and then whatever they ended up stringing together, it
would be checked by my script for syntax (I don't know how I was going to do
this), and then saved externally as a separate script.
It looks like I will be using Smile though. Thanks for everything guys.
Greg Strange
--
...On se laisse griser.
La shve est du champagne
et vous monte ` la tjte...