MACSCRPT Archives

July 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
John Delacour <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 6 Jul 2007 09:26:22 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
At 8:01 pm -0700 5/7/07, Brian Johnson wrote:

>	tell application "URL Access Scripting"
>	   set x to download this_url to file (local_filepath) 
>replacing yes without progress and unpacking
>	end tell
>
>It is important that the local_path (all parts but the file) exists 
>before you do this.

Just to be clear, the file itself does not need to exist, only the 
directory where UAS will create or rewrite it:

set _uri to "http://www.google.co.uk/ig?hl=en"
set _path to (path to desktop as Unicode text) & "google.html"
set _file to _path as file specification
tell application "URL Access Scripting"
	download _uri to _file replacing yes
end tell

JD

ATOM RSS1 RSS2