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: Harald E Brandt <email@hidden>
- Date: Sun, 3 Jun 2001 16:28:11 +0200
Still, it is a matter of fact that URL Access Scripting cannot handle URLs that are longer than 256 characters plus "http", despite most browsers can handle much more! Might be good for any URLAS scripters to know...!
(And who would ever need more than 256 characters URLs you might ask? Well, I have to chop up the fetching of stock tickers from Yahoo into maximum of about 20 tickers at a time to sneak in under the 256 limit of URLAS... So it is really very important to know the limit!)
+--> Charles Arthur wrote 01-06-01:
>
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.
+--
______heb________________________________________________________________
Harald E Brandt email@hidden PGP/MIME aware
http://heb.surf.to