URL Access Scripting not working in Tiger....
URL Access Scripting not working in Tiger....
- Subject: URL Access Scripting not working in Tiger....
- From: David Crowe <email@hidden>
- Date: Tue, 30 Aug 2005 20:28:27 -0600
Title: URL Access Scripting not working in
Tiger....
Does anybody have a solution to the problem with this
script...
set theURL
to (Scanner_URL
& "notused.pdf" & "?type="
& TypeCode & "&fmt="
&
FormatCode) as string
tell "URL Access Scripting"
with timeout
of 240 seconds
try
download theURL to file
FileName
--set thePage to do
shell script "curl " & theURL
set fd to open
for access file
FileName with write permission
write thePage to
fd
close
access fd
on
error errmsg
activate
display
dialog "Access to URL
<" &
theURL & "> for
page #" &
PageNumber & "
failed." &
return & errmsg
return (false)
end
try
end
timeout
end tell
return (true)
en
The line "download theURL to file FileName" does not
compile. I get the error message "Syntax Error: Expected end of
line but found identifier."
If I replace the line with just "download" it compiles
but obviously doesn't work.
- David Crowe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden