Applescript compiler error
sarahr at genesearch.com.au
Wed Jun 2 00:31:46 CDT 2004
It seemed to me that if the original script ran OK in the Script
Editor, it must be something to do with how the scripttorun variable
was assembled. I found two errors which were causing the problem and
when fixed, the script ran perfectly for me.
> put "return " & quote & "Account already in AppleMail." & return
> put "end try" & return after scripttorun
> put "end tell" & return after scriptorun
Ignoring the line wraps, there needs to be another quote in the first
put "return " & quote & "Account already in AppleMail." & quote &
return after scripttorun
The last line in the segment I quoted above, the variable name is
missing a "t", so the AppleScript never gets the "end tell" it needs.
On 2 Jun 2004, at 2:48 pm, RGould8 at aol.com wrote:
> I'm having some strange Applescript issues with Revolution, and I need
> help figuring out why it's behaving this way. I have the below
> script in a
> text field in Revolution. It's whole purpose is to add a new email
> account to
> AppleMail. I originally had an Applescript from script-editor and I
> it into a text field in Revolution and ran it. Revolution complained
> Applescript was giving a "compiler error". I thought perhaps hidden
> were getting inserted somehow and messing up the Applescript compiler,
> so I
> wrote the below code to piece it together by hand, and I still get a
> error. Can anyone tell me what's wrong with the below script? If
> you take
> the output and paste it into Script Editor, it'll work just fine.
> There's just
> something about running it in Revolution that Applescript doesn't like.
More information about the use-livecode