Re: Store Script Madness
Re: Store Script Madness
- Subject: Re: Store Script Madness
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 15 Nov 2001 19:10:33 -0800
On 11/15/01 6:43 PM, "AppleScript Greg" <email@hidden>
wrote:
>
I know I have done this before. But this line:
>
>
>
>
store script theNewScript in file (newScript)
>
>
>
>
Gives me an error ("Can't make some data into the expected type.") and I
>
swear I can't figure it out. I even stripped it down to theNewScript to
>
"beep 2". I also know that the newScript is a properly formed alias and the
>
alias exists.
>
>
Can someone tell me what I am doing wrong?
If theNewScript is already a properly formed alias, as you say, rather than
a properly formed string file-path, then you don't need a redundant 'file'.
You want
store script theNewScript in newScript replacing yes
--
Paul Berkowitz