-- Using URL Access Scripting
set myFile to ((path to temporary items) as string) & "url_access_file.xml"
tell application "URL Access Scripting"
download "http://www.nws.noaa.gov/data/current_obs/KATT.xml" to file myFile
-- Using curl
set myFile to (POSIX path of (path to temporary items)) & "curl_file.xml"
do shell script "curl -L " & "http://www.nws.noaa.gov/data/current_obs/KATT.xml" & " -o " & myFile
Chris Galfo wrote:...I've had it running for the past few hours under Indigo 4 and OS X 10.6.4 (Snow Leopard) and it's humming along on my more complex version of the script. Someone else will have to test it under 10.7 (Lion)...
Users browsing this forum: No registered users and 0 guests