Just tried both of them from here and they worked fine. This indicates one of the following:
1) A network issue at your house is keeping you from reaching the NOAA site. To ensure that your Mac can get to the NOAA site open Safari on that Mac and try the URL directly that the script uses:
http://www.nws.noaa.gov/data/current_obs/KNYC.xml (note that WNYC and WJFK seem to redirect to KNYC and KJFK respectively). You should get an XML page that renders in HTML (the XML file specifies an XSLT translation doc to convert it to HTML). But if you view source it should look like a normal XML file.
2) The URL Access Scripting application, which the script uses to download the XML file, is having an issue. Not sure what you can do about that - maybe reboot your Mac (although I'm pretty sure you've tried that). You can try running this in Script Editor and see if you get any better error messages:
- Code: Select all
tell application "Finder"
set myFile to ((path to temporary items) as string) & "noaa_sync_temp.xml"
end tell
tell application "URL Access Scripting"
download "http://www.nws.noaa.gov/data/current_obs/KNYC.xml" to file myFile replacing yes
end tell
That's basically what the script is doing to get the XML data it uses.