Posted on Fri - January 13, 2006 Weather MapsThe original version of this script is in
YOURDISC/Library/Scripts/URLs. It's a nice piece of work, but it does have one
flaw. The original holds the codes for both a temperature and an isobar map,
but it can only display one at a time. I want both, even if I only look at them
for about thirty seconds a day.
So of course I had to modify a bit and then experiment to see what tweaks worked best. The script is simple.
set
temperature_map
to
"acttemp_720x486.jpg" --
temperatures
set
weather_map
to
"curwx_720x486.jpg" --
surface isobars
set
the
target_URL
to
"http://maps.weather.com/images/maps/current/" &
temperature_map
set
the
destination_file1
to
((path to
desktop
as
string)
& "tempermap.jpg")
tell
application
"URL Access Scripting"
download
target_URL
to
file
destination_file1
replacing
yes
end
tell
set
the
target_URL
to
"http://maps.weather.com/images/maps/current/" &
weather_map
set
the
destination_file
to
((path to
desktop
as
string)
& "weathermap.jpg")
tell
application
"URL Access Scripting"
download
target_URL
to
file
destination_file
replacing
yes
end
tell
tell
application
"Finder"
to
open
alias
destination_file
tell
application
"Finder"
to
open
alias
destination_file1
That is all there is to it, I just set my other scripts to make a call to this one. It's not perfect though. When I get time I want to change the download spot from the desktop to Users/Shared/Shared Desktop Pictures so every account can run the script or call up the latest pictures. I really don't like keeping files on my desktop unless I am working on them. |
Hello There
This is my no frills blog to cover all the gadgets and gizmos and technology that makes 21st Century life so exciting. Think of it as a messy set of notes that I keep for myself on all sorts of topics. It's really intended for my personal use, but I will explain sometimes as I go along.
My passion is for Macintosh and other Apple products, but I will use others as needed. If my notes and experiences can help or amuse you, so much the better. Categories
Calendar
Archives
XML/RSS Feed
Neolinks
Homepage AOL Homepage Geocities Homepage Dot Mac Homepage PaganVigil AOL Pagan Vigil Geocities Pagan Vigil Dot Mac Pagan Vigil Technopagan Yearnings AOL Technopagan Yearnings Geocities Technopagan Yearnings Dot Mac Technopagan Yearnings Webmaster NetworkSolutions Dot Mac dotmac.info WhatTheFont MacHighway America Online Yahoo! Geocites ZoneEdit iBlog HaloScan StatCounter Feed to JavaScript Performancing Design Re-Imagineering Steampunk Workshop Design Observer Subtraction Paleo-Future Hardware Apple CDW Cyberguys PCMall X-Treme Geek Software TypeStyler Graphic Converter Palm News & Info Palm Infocenter Brighthand Forums - Palm mytreo.net Making Music Apple - iLife - GarageBand iCompositions Royalty Free Music, Free Sound Effects, Royalty-free Sounds Tune Up Loops Twin Cities MIDI Home Page Andy's OSX Music Page Apple Logic Pro - AUDIO Hints & Tips Library of scanned player piano music rolls Garritan Orchestral Libraries Drums on Demand Bandmateloops Coolness Gizmodo Engadget Daring Fireball RoughlyDrafted Magazine Applefritter iGeek MaKiDo Mac vs. PC Info Why I Hate Microsoft World of Ends Tracking What Is My IP Address? IP Address Trace Geektools WHOIS ARIN WHOIS Database Search Zabra People Search NeoBlogs
Statistics
Total entries in this blog:
Total entries in this category: Published On: Dec 07, 2008 01:28 PM |