tell syntax - specifying the APPL with a preset string
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. <--