• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: why won't this compile?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: why won't this compile?
      • From: Steven Angier <email@hidden>
References: 
 >why won't this compile? (From: "Donald S. Hall" <email@hidden>)

  • Prev by Date: Extracting text from IE (or PageSpinner)
  • Next by Date: Re: why won't this compile?
  • Previous by thread: why won't this compile?
  • Next by thread: Re: why won't this compile?
  • Index(es):
    • Date
    • Thread