Re: why won't this compile?
Re: why won't this compile?
- Subject: Re: why won't this compile?
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 27 Dec 2001 22:07:27 -0800
On 12/27/01 9:32 PM, "Donald S. Hall" <email@hidden> wrote:
>
In the latter two cases, "Check Syntax" produces an error message:
>
>
'Expected end of line, but found identifier.' The identifier highlighted is
>
theURL in the OpenURL statement.
>
>
What am I doing wrong, if anything?
If you're using a variable for a tell block, surround it in
using terms from application "Internet Explorer"
tell whoever
end tell
end using terms from
in OS 9/X.
The construct 'application "Internet Explorer"' is not the same as the
English words 'application' & "Internet Explorer". So you can't substitute
a variable. For OS's earlier than 9, you need to compile the script using
raw codes, without the 'using terms from'. (Or maybe this was introduced in
OS 8.6, I forget.)
--
Paul Berkowitz