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:
Brian Johnson <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 5 Jul 2007 20:11:06 -0700
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (19 lines)
By way of example, I converted the previous snippet into this, which runs 
on my machine in Script Editor. Hopefully it will work in yours too...

   -- Brian Johnson


set this_url to "http://www.apple.com/index.html"
set local_filepath to (path to desktop) as string
set local_filepath to local_filepath & "a.b"

display dialog local_filepath

with timeout of 100 seconds
 	tell application "URL Access Scripting"
 		set x to download this_url to file (local_filepath)
 			replacing yes without progress and unpacking
 	end tell
end timeout

ATOM RSS1 RSS2