Re: Compile a string?
Re: Compile a string?
- Subject: Re: Compile a string?
- From: Emmanuel <email@hidden>
- Date: Fri, 22 Jun 2001 16:05:51 +0200
At 14:54 +0200 22/06/01, Andy Wylie wrote:
>
I've come up against the save without asking problem too (a button script
>
which cuts the selection of a Smile sheet} my solution was to create the
>
file outside the application
>
set x to a new file in (path to "desk") named "foo" of type "osas" with
>
creator "VIZF"
>
tell application "Smile 1.8.0"
>
[...]
>
DoOpen(x)
>
[...]
>
do menu 30 to window "foo" --save
>
[...]
>
end tell
A shorter way could be (in a "tell Smile" wrapper):
-------------------------------- pseudo-code
set theWind to make new script window -- "with properties ..." if needed
[...]
save theWind in "" & (path to desktop folder) & "foo" -- just use a string
--------------------------------
HTH
Emmanuel