Re: Reply to 'To .jpg or not'.
Re: Reply to 'To .jpg or not'.
- Subject: Re: Reply to 'To .jpg or not'.
- From: Joshua See <email@hidden>
- Date: Sun, 21 Mar 2004 17:24:00 -0600
Dilbert may not be the best example. While constructing a custom comics
page script, I noticed that the site seemed to have an allergy to
URLAS. Under 9.x, I scripted Netscape to get around this, and in OS X I
use curl.
On Mar 19, 2004, at 6:48 PM, email@hidden wrote:
tell application "Finder"
set theUrl to
"http://www.dilbert.com/comics/dilbert/archive/images/
dilbert2004031348584.jpg" -- "http://webaddress.jpg"
set theFile to (((path to desktop folder) as text) & "test:test.jpg")
end tell
tell application "URL Access Scripting"
with timeout of 60 seconds
try
download theUrl to file specification theFile replacing yes
display dialog "Download Successful" with icon note
on error
display dialog "Sorry, couldn't download the webpage" with icon 2
end try
end timeout
end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.