• 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
tell syntax - specifying the APPL with a preset string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tell syntax - specifying the APPL with a preset string


  • Subject: tell syntax - specifying the APPL with a preset string
  • From: Doug McNutt <email@hidden>
  • Date: Tue, 6 Nov 2001 09:09:27 -0700

set theBrowser to "Netscape Communicator"
set theBrowser to "iCab"
set theFile to "Luna:. . ."
set theURL to "https://www.. . ."
process(theURL, theFile)
. . . . .
on process(aURL, aFile)
tell application theBrowser
GetURL aURL to file aFile
end tell
end process

Results in a compile failure. Something about "expected end of line but found identifier" but the Script Editor won't let me copy it for pasting here. The item aURL is highlighted in the line that begins with GetURL. I have tried adding theBrowser to the argument list but it doesn't help. I haven't tried this:

"O appleScript processor, would you please make "theBrowser" a global variable for me."

Using tell application "iCab" works OK. If I can't use a named variable then why are the quotes required when the actual name is entered?

Incidentally, iCab 2.6 is now handling https and it also returns a result. The long-standing problem of reading html pages and waiting for them may be solved.
--

--> Life begins at ovulation. Ladies should endeavor to get every young life fertilized. <--


  • Follow-Ups:
    • Re: tell syntax - specifying the APPL with a preset string
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Scripting Machine Name
  • Next by Date: Validate user input
  • Previous by thread: Scripting Machine Name
  • Next by thread: Re: tell syntax - specifying the APPL with a preset string
  • Index(es):
    • Date
    • Thread