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