Re: tell syntax - specifying the APPL with a preset string
Re: tell syntax - specifying the APPL with a preset string
- Subject: Re: tell syntax - specifying the APPL with a preset string
- From: JJ <email@hidden>
- Date: Tue, 06 Nov 2001 19:57:36 +0100
>
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:
>
It works for me (Communicator & iCab 2.5.3)
on process(aURL,aFile)
tell application theBrowser
open location aURL given <<class dest>>:aFile
end tell
end process
JJ