Re: Doh! Limit on URL Access Scripting characters?
Re: Doh! Limit on URL Access Scripting characters?
- Subject: Re: Doh! Limit on URL Access Scripting characters?
- From: Charles Arthur <email@hidden>
- Date: Fri, 1 Jun 2001 12:40:17 +0100
Hi ...
I posted a sample script yesterday... which demonstrated that I am becoming
Homer Simpson.
--
set theFile to choose file -- pick any old temp file to overwrite with the
result, which should be an HTML output
tell application "URL Access Scripting"
download URL ,
"
http://groups.google.com/groups?q=+"TR:"+-Re:+group:uk.rec.climbing&hl=en&
lr=&safe=off&rnum=2&ic=1&selm=email@hidden" to file
theFile replacing yes
end tell
--
Not bad, as it contains two errors in one line: the third should read
download (huge long string) to thefile replacing yes.
--that is, download URL "string" is not URLAS syntax; it's just download
"string".
That then works. Applescript had formatted the word "URL" as a keyword
rather than a variable (I've no idea why), which foxed me in my knackered
state.
Thanks to those who replied. The point someone made about the long bit
being form data isn't right - this is a URL that you can cut+paste into
your browser window. (It worked with iCab, which is part of what confused
me, as iCab uses URLAS to do the fetching of HTML.)
Charles
----------------------------
http://www.ukclimbing.com : 1000+ British crags, 350+ British climbing
walls - searchable by distance and anything else you care to think of -
with weather forecasts for every one, plus maps, articles, news and
features. Plus Britain's busiest climbing discussion boards. And there's
even a cool shop attached.