Saturday, December 16, 2017

#1 2009-10-11 10:04:14 am

Curtranhome
Member
Registered: 2009-07-27
Posts: 19

Iron Man Script is here!

hey people, i just finished with a script that does the same thing as jarvas in the movie Iron Man, the only real difference is the voice synthesizing, so it doesn't sound like him, but it uses the system voice on your computer. There are some minor, differences to, like the fact that it opens up thunderbird, and itunes plays music from a playlist - in this case "Skillet" (favorite band). You might want to edit it alittle to fit what you want. If there is any updates to this script, please post here or contact me some how. It totals to about 92 Kb

any way here is the script:

Applescript:


(*This script is copyright by Curtranhome - All Rights Reserved - Complete Access to this script is for everyone, but will need to present the script to Curtranhome*)
tell application "iTunes"
   activate
   play the playlist ("Skillet")
end tell

set volume 6

delay (10)
set weatherurl to "[url]http://weather.yahoo.com/[/url]"
set city to "Sacramento CA"

tell application "Safari"
   activate
   make new document with properties {URL:weatherurl}
   repeat
       set docstate to (do JavaScript "document.readyState" in document 1)
       if docstate is "complete" then
           exit repeat
       end if
   end repeat
   delay 5
   do JavaScript "document.forms[2].elements[0].value = \"" & city & "\"" in document 1
   do JavaScript "document.forms[2].elements[1].click()" in document 1
   delay 5
   set websitesource to source of document 1
   close document 1
   set todayoffset to offset of "<strong>Today:</strong>" in websitesource
   set partwebsitesource to (characters todayoffset through -1 of websitesource) as text
   set listoffset to offset of "F" in partwebsitesource
   set todayweather to (characters 26 through (listoffset - 1) of partwebsitesource) as text
end tell

tell application "Thunderbird" to activate

delay (10)

(*Resize windows of iTunes, Safari and Thunderbird*)
tell application "Finder"
   set screen_resolution to bounds of window of desktop
   set screen_width to item 3 of screen_resolution
   set screen_height to item 4 of screen_resolution
end tell


set desired_width to 1000

set side_space to screen_width - desired_width
set left_bound to (side_space / 2)
set right_bound to left_bound + desired_width
set bottom_bound to screen_height
set top_bound to 22 (* for the menu bar *)

try
   tell application "iTunes"
       activate
       set the bounds of the first window to {left_bound, top_bound, right_bound, bottom_bound}
   end tell
end try

try
   tell application "Thunderbird"
       activate
       set the bounds of the first window to {left_bound, top_bound, right_bound, bottom_bound}
   end tell
end try

delay (5)

(*Say the Date*)
set myDate to get (current date)
set myMonth to get month of (current date)
set myDay to get day of (current date)
set myYear to get year of (current date)

if myDay is 1 then
   say ("Today is: " & myMonth & " 1st - " & myYear & "!")
else if myDay is 2 then
   say ("Today is: " & myMonth & " 2nd - " & myYear & "!")
else if myDay is 3 then
   say ("Today is: " & myMonth & " 3rd - " & myYear & "!")
else if myDay is greater than 3 then
   say ("Today is: " & myMonth & " " & myDay & "th- " & myYear & "! ")
else if myDay is 31 then
   say ("Today is: " & myMonth & " 31st " & myYear & "!")
else if myDay is 21 then
   say ("Today is: " & myMonth & " 21st " & myYear & "!")
else if myDay is 22 then
   say ("Today is: " & myMonth & " 22nd " & myYear & "!")
else if myDay is 23 then
   say ("Today is: " & myMonth & " 23rd " & myYear & "!")
else
   say ("There is something wrong with the date applescript")
end if

(*say the current weather - scripted above*)
tell me
   say "and the weather is: " & todayweather & " degrees"
end tell

(*say the current time*)
set myHour to get hours of (current date)
set myMinute to get minutes of (current date)

if myHour is 1 then
   say ("it is now one-" & myMinute & " -A-M!")
else if myHour is 2 then
   say ("it is now two-" & myMinute & " -A-M!")
else if myHour is 3 then
   say ("it is now three-" & myMinute & " -A-M!")
else if myHour is 4 then
   say ("it is now four-" & myMinute & " -A-M!")
else if myHour is 5 then
   say ("it is now five-" & myMinute & " -A-M!")
else if myHour is 6 then
   say ("it is now six-" & myMinute & " -A-M!")
else if myHour is 7 then
   say ("it is now seven-" & myMinute & " -A-M!")
else if myHour is 8 then
   say ("it is now eight-" & myMinute & " -A-M!")
else if myHour is 9 then
   say ("it is now nine-" & myMinute & " -A-M!")
else if myHour is 10 then
   say ("it is now ten-" & myMinute & " -A-M!")
else if myHour is 11 then
   say ("it is now eleven-" & myMinute & " -A-M!")
else if myHour is 12 then
   say ("it is now twelve-" & myMinute & " -PM!")
else if myHour is 13 then
   say ("it is now one-" & myMinute & "-PM!")
else if myHour is 14 then
   say ("it is now two-" & myMinute & "-PM!")
else if myHour is 15 then
   say ("it is now three-" & myMinute & "-PM!")
else if myHour is 16 then
   say ("it is now four-" & myMinute & "-PM!")
else if myHour is 17 then
   say ("it is now five-" & myMinute & "-PM!")
else if myHour is 18 then
   say ("it is now six-" & myMinute & "-PM!")
else if myHour is 19 then
   say ("it is now seven-" & myMinute & "-PM!")
else if myHour is 20 then
   say ("it is now eight-" & myMinute & "-PM!")
else if myHour is 21 then
   say ("it is now nine-" & myMinute & "-PM!")
else if myHour is 22 then
   say ("it is now ten-" & myMinute & "-PM!")
else if myHour is 23 then
   say ("it is now eleven-" & myMinute & "-PM!")
else if myHour is 0 then
   say ("it is now twelve-" & myMinute & "-A-M!")
else
   say ("Error: there is something wrong with the time applescript number one.")
end if

delay (600)

(* Quit Thunderbird/Mail *)
say "Thunderbird will now quit"
tell application "Thunderbird" to quit

(*say the time after everything is done*)
set myHour to get hours of (current date)
set myMinute to get minutes of (current date)

if myHour is 1 then
   say ("it is now one-" & myMinute & " -A-M!")
else if myHour is 2 then
   say ("it is now two-" & myMinute & " -A-M!")
else if myHour is 3 then
   say ("it is now three-" & myMinute & " -A-M!")
else if myHour is 4 then
   say ("it is now four-" & myMinute & " -A-M!")
else if myHour is 5 then
   say ("it is now five-" & myMinute & " -A-M!")
else if myHour is 6 then
   say ("it is now six-" & myMinute & " -A-M!")
else if myHour is 7 then
   say ("it is now seven-" & myMinute & " -A-M!")
else if myHour is 8 then
   say ("it is now eight-" & myMinute & " -A-M!")
else if myHour is 9 then
   say ("it is now nine-" & myMinute & " -A-M!")
else if myHour is 10 then
   say ("it is now ten-" & myMinute & " -A-M!")
else if myHour is 11 then
   say ("it is now eleven-" & myMinute & " -A-M!")
else if myHour is 12 then
   say ("it is now twelve-" & myMinute & " -PM!")
else if myHour is 13 then
   say ("it is now one-" & myMinute & "-PM!")
else if myHour is 14 then
   say ("it is now two-" & myMinute & "-PM!")
else if myHour is 15 then
   say ("it is now three-" & myMinute & "-PM!")
else if myHour is 16 then
   say ("it is now four-" & myMinute & "-PM!")
else if myHour is 17 then
   say ("it is now five-" & myMinute & "-PM!")
else if myHour is 18 then
   say ("it is now six-" & myMinute & "-PM!")
else if myHour is 19 then
   say ("it is now seven-" & myMinute & "-PM!")
else if myHour is 20 then
   say ("it is now eight-" & myMinute & "-PM!")
else if myHour is 21 then
   say ("it is now nine-" & myMinute & "-PM!")
else if myHour is 22 then
   say ("it is now ten-" & myMinute & "-PM!")
else if myHour is 23 then
   say ("it is now eleven-" & myMinute & "-PM!")
else if myHour is 0 then
   say ("it is now twelve-" & myMinute & "-A-M!")
else
   say ("Error: there is something wrong with the time applescript number 2.")
end if

(*End of Script*)

Model: Power Mac
Browser: Safari 531.9
Operating System: Mac OS X (10.4)

Offline

 

#2 2009-10-14 01:41:27 am

Kevin Bradley
Administrator
From:: Independence, MO
Registered: 2006-03-13
Posts: 548
Website

Re: Iron Man Script is here!

Nice going, Curtranhome!  I wrote something similar years ago when I was playing with the speech tools.  I did notice a couple of areas that could be shortened.  The "say date" section can be reduced to only 4 cases:

(1st/21st/31st, 2nd/22nd/32nd, 3rd/23rd/33rd, and nth)

and you can also shorten the "say time" section by realizing that the hour values > 12 can be fixed by subtracting 12 and creating a new variable to hold "am" or "pm".  Since you're saying the time twice, you can also make that section a handler so you can just write it once and call it from the main script.

See what you think of this:

Applescript:


(*This script is copyright by Curtranhome - All Rights Reserved - Complete Access to this script is for everyone, but will need to present the script to Curtranhome*)
tell application "iTunes"
   activate
   play the playlist ("Skillet")
end tell

set volume 6

delay (10)
set weatherurl to "[url]http://weather.yahoo.com/[/url]"
set city to "Sacramento CA"

tell application "Safari"
   activate
   make new document with properties {URL:weatherurl}
   repeat
       set docstate to (do JavaScript "document.readyState" in document 1)
       if docstate is "complete" then
           exit repeat
       end if
   end repeat
   delay 5
   do JavaScript "document.forms[2].elements[0].value = \"" & city & "\"" in document 1
   do JavaScript "document.forms[2].elements[1].click()" in document 1
   delay 5
   set websitesource to source of document 1
   close document 1
   set todayoffset to offset of "<strong>Today:</strong>" in websitesource
   set partwebsitesource to (characters todayoffset through -1 of websitesource) as text
   set listoffset to offset of "F" in partwebsitesource
   set todayweather to (characters 26 through (listoffset - 1) of partwebsitesource) as text
end tell

tell application "Thunderbird" to activate

delay (10)

(*Resize windows of iTunes, Safari and Thunderbird*)
tell application "Finder"
   set screen_resolution to bounds of window of desktop
   set screen_width to item 3 of screen_resolution
   set screen_height to item 4 of screen_resolution
end tell


set desired_width to 1000

set side_space to screen_width - desired_width
set left_bound to (side_space / 2)
set right_bound to left_bound + desired_width
set bottom_bound to screen_height
set top_bound to 22 (* for the menu bar *)

try
   tell application "iTunes"
       activate
       set the bounds of the first window to {left_bound, top_bound, right_bound, bottom_bound}
   end tell
end try

try
   tell application "Thunderbird"
       activate
       set the bounds of the first window to {left_bound, top_bound, right_bound, bottom_bound}
   end tell
end try

delay (5)

(*Say the Date*)
set myDate to get (current date)
set myMonth to get month of (current date)
set myDay to get day of (current date)
set myYear to get year of (current date)

if last character of myDay as text is "1" then
   set myDay to myDay & "st"
else if last character of (myDay as text) is "2" then
   set myDay to myDay & "nd"
else if last character of (myDay as text) is "3" then
   set myDay to myDay & "rd"
else
   set myDay to myDay & "th"
end if

say ("Today is: " & myMonth & space & myDay & space & myYear & "!")

(*say the current weather - scripted above*)
tell me
   say "and the weather is: " & todayweather & " degrees"
end tell

(*say the current time*)
sayTime()

delay (600)

(* Quit Thunderbird/Mail *)
say "Thunderbird will now quit"
tell application "Thunderbird" to quit

(*say the time after everything is done*)
sayTime()

(*End of Script*)

on sayTime()
   set myHour to get hours of (current date)
   set myMinute to get minutes of (current date)
   
   if myHour > 12 then
       set myHour to (my hour) - 12
       set ampm to "PM"
   else
       set ampm to "AM"
   end if
   say "it is now " & myHour & ":" & myMinute & space & ampm
end sayTime


Nitewing '98
--
I distrust morning people, largely because I suspect them of getting together early one day while the rest of us were asleep and setting up the rules of civilization.

Offline

 

#3 2009-10-14 03:28:19 am

chrys
Member
From:: McKinney, TX, USA
Registered: 2007-06-26
Posts: 442

Re: Iron Man Script is here!

Kevin Bradley wrote:

The "say date" section can be reduced to only 4 cases:

(1st/21st/31st, 2nd/22nd/32nd, 3rd/23rd/33rd, and nth)


Actually, you probably only need one case: nth (say does the right thing with "1th", "2th", and "3th").

Applescript:

say "1th" --> “first”
say "2th" --> “second”
say "3th" --> “third”
say "21th" --> “twenty first”
say "22th" --> “twenty second”
say "23th" --> “twenty third”
say "31th" --> “thirty first”

Credit: Michelle Steiner on AppleScript-Users


--
Chris

Offline

 

#4 2009-10-14 03:54:36 am

Kevin Bradley
Administrator
From:: Independence, MO
Registered: 2006-03-13
Posts: 548
Website

Re: Iron Man Script is here!

Wow.  I didn't know that.  I wonder if that's something that we can count on not to change, or if some genius will "fix" it in a future release of AS.


Nitewing '98
--
I distrust morning people, largely because I suspect them of getting together early one day while the rest of us were asleep and setting up the rules of civilization.

Offline

 

#5 2009-10-17 12:18:46 am

Curtranhome
Member
Registered: 2009-07-27
Posts: 19

Re: Iron Man Script is here!

Ok, thanks for your replies - they have really been helpful. But the only thing I need to work on is getting the voice to actually sound like/similar to iron man's computer voice (can't spell it's name... lol). If you have any suggestions or ideas on this, then we can really start to revolutionize even faster.

Thanks again,
curtranhome

Offline

 

#6 2009-10-17 03:01:43 pm

Kevin Bradley
Administrator
From:: Independence, MO
Registered: 2006-03-13
Posts: 548
Website

Re: Iron Man Script is here!

I believe his computer's name is "Jarvis."  Don't remember what he sounds like, but the Alex voice is the best male voice in the Speech preferences.  The best female voice is Vicki (which came from Victoria, which was the best for a long time).


Nitewing '98
--
I distrust morning people, largely because I suspect them of getting together early one day while the rest of us were asleep and setting up the rules of civilization.

Offline

 

#7 2009-10-17 05:48:57 pm

Craig Williams
Administrator
From:: Ft. Smith, AR
Registered: 2006-12-07
Posts: 888

Re: Iron Man Script is here!

Check out Cepstral voices. They are not free but may have what you are looking for.

Offline

 

#8 2010-01-12 04:12:47 pm

nbattlesfoto
Member
Registered: 2007-12-05
Posts: 27

Re: Iron Man Script is here!

I get this error when I use this script: (Sorry for the enormous quote)  Is this a Snow Leopard issue?

Can’t make characters 0 thru -1 of "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">
<html lang=\"en-US\">
<head>
        <!--
    ************************** NOTICE *******************************
    The data (conditions, forecasts, news, images, logos) contained in
    this page are copyrighted by Yahoo! Inc. and the Weather Channel
    Enterprises, Inc. You are prohibited from using or repurposing this
    data in any way without express written consent from Yahoo! Inc. and
    the Weather Channel Enterprises, Inc.
    If you are looking for a source of weather data, please see the
    National Weather Service Website at http://www.nws.noaa.gov/. Their
    data is public information, to be used with appropriate
    byline/photo/image credits.
    ************************** NOTICE *******************************
    -->
    <title>Weather forecast, maps, news, alerts, and video on Yahoo! Weather</title>
    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">
    <meta content=\"Yahoo! Weather: Weather Forecast, High and Low temperatures, Satellite maps, News, Video and more.\" name=\"description\" />
    <meta content=\"Weather, International Weather, Weather Forecast, Local Weather, Weather Forecast USA, Weather Satellite, Weather Maps, Weather Radar, National Weather, News, Video, World Weather\" name=\"keywords\"/>
   
<link rel=\"stylesheet\" href=\"http://l.yimg.com/a/lib/ywc/css/weather.6.1.min.css\"></link>

</head>
<body>
<div id=\"doc\" class=\"yui-t6\">
    <div id=\"hd\">
        <link type=\"text/css\" rel=\"stylesheet\" href=\"http://l.yimg.com/a/lib/uh/15/css/uh_rsa-1.0.5.css\" /><style type=\"text/css\">#ygma #ygma-search{width:480px;}#ygma #ygma-search input{width:250px;}.clr:after,.clr{line-height:normal;}#ygma .btn{*margin-top:1px;_margin-top:0px;}#ygma .bd{padding-bottom:0;}</style><script type=\"text/javascript\">(function(){var h={};var setUp=function(){h=YAHOO.one.uh.hotlistInfo={rd:\"http://us.ard.yahoo.com\",space:\"/SIG=15lurjpsa/M=650008.12777167.13811118.2268219/D=wt/S=16335623:HEAD/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=Q_uzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5851058/R=0\",adid:\"5851058\",prop:\"wt\",protocol:\"http\",host:\"weather.yahoo.com\",url:\"%2f\"};YAHOO.one.uh.translate=function(str){var set={yahoo_homepage:\"http://yahoo.com/\",hp_detect_script:\"http://www.yahoo.com/includes/hdhpdetect.php\",set_hp_script:\"http://us.ard.yahoo.com/SIG=15lurjpsa/M=650008.12777167.13811118.2268219/D=wt/S=16335623:HEAD/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=Q_uzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5851058/R=1/SIG=10uacnjgh/*http://www.yahoo.com/bin/set\",set_hp_firefox_instructions:[\"Drag the \\\"Y!\\\" and drop it onto the \\\"Home\\\" icon.\",\"Select \\\"Yes\\\" from the pop up window.\",\"Nothing,you're done.\"],close_this_window:\"Close this window\",set_hp_alternative_instructions1:\"If this didn't work for you see \",detailed_set_hp_instructions:\"detailed instructions\",set_hp_alternative_instructions2:\"\"};return set[str];};YAHOO.one.uh.Search=['ygmasearchInput','sat'];};if(\"undefined\" !==typeof YAHOO && \"undefined\" !==typeof YAHOO.one && \"undefined\" !==typeof YAHOO.one.uh){setUp();}else{setTimeout(arguments.callee,500);}})();</script><div id=\"ygma\"><div id=\"ygmaheader\"><div class=\"bd sp\"><div id=\"ymenu\" class=\"ygmaclr\"><div id=\"mepanel\"><ul id=\"mepanel-nav\"><li class=\"me1\"><em>New User? <a class=\"ygmasignup\" href=\"http://us.ard.yahoo.com/SIG=15lurjpsa/M=650008.12777167.13811118.2268219/D=wt/S=16335623:HEAD/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=Q_uzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5851058/R=2/SIG=130h1sid4/*https://edit.yahoo.com/config/eval_register?.done=http://weather.yahoo.com%2f&.src=yw&.intl=us\">Sign Up</a></em></li><li class=\"me2\"><a href=\"http://us.ard.yahoo.com/SIG=15lurjpsa/M=650008.12777167.13811118.2268219/D=wt/S=16335623:HEAD/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=Q_uzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5851058/R=3/SIG=12pj8bqji/*https://login.yahoo.com/config/login?.done=http://weather.yahoo.com%2f&.src=yw&.intl=us\"><em>Sign In</em></a></li><li class=\"me3\"><a href=\"http://us.ard.yahoo.com/SIG=15lurjpsa/M=650008.12777167.13811118.2268219/D=wt/S=16335623:HEAD/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=Q_uzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5851058/R=4/SIG=11bt1fb9v/*http://help.yahoo.com/l/us/yahoo/weather/\" target=\"_top\">Help</a></li></ul></div><div id=\"ygmapromo\"><!-- SpaceID=16335623 loc=HPRM2 noad -->
<script language=javascript>
if(window.yzq_d==null)window.yzq_d=new Object();
window.yzq_d['R_uzCEwNBkU-']='&U=12dv8ov0r%2fN%3dR_uzCEwNBkU-%2fC%3d-1%2fD%3dHPRM2%2fB%3d-1%2fV%3d0';
</script><noscript><img width=1 height=1 alt=\"\" src=\"http://us.bc.yahoo.com/b?P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14uqu2h57%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d2.1%2fW%3dH%2fY%3dYAHOO%2fF%3d1447325601%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fQ%3d-1%2fS%3d1%2fJ%3d498B8862&U=12dv8ov0r%2fN%3dR_uzCEwNBkU-%2fC%3d-1%2fD%3dHPRM2%2fB%3d-1%2fV%3d0\"></noscript></div><div id=\"pa\"><div id=\"pa-wrapper\"><ul id=\"pa2-nav\" class=\"sp\"><li class=\"pa1 sp\"><a class=\"sp\" href=\"http://us.ard.yahoo.com/SIG=15lurjpsa/M=650008.12777167.13811118.2268219/D=wt/S=16335623:HEAD/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=Q_uzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5851058/R=5/SIG=10np9vmbm/*http://www.yahoo.com/\" target=\"_top\">Yahoo!</a></li><li class=\"pa2 sp\"><a class=\"sp\" href=\"http://us.ard.yahoo.com/SIG=15lurjpsa/M=650008.12777167.13811118.2268219/D=wt/S=16335623:HEAD/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=Q_uzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5851058/R=6/SIG=10n3m6b64/*http://mail.yahoo.com\" target=\"_top\">Mail</a></li></ul><div id=\"pa-left\" class=\"sp\"></div><ul id=\"pa-nav\" class=\"sp\"><li class=\"pa3 sp\"><a class=\"sp\" href=\"http://us.ard.yahoo.com/SIG=15lurjpsa/M=650008.12777167.13811118.2268219/D=wt/S=16335623:HEAD/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=Q_uzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5851058/R=7/SIG=10l2nj3k8/*http://my.yahoo.com\" title=\"My Yahoo!\" target=\"_top\">My Yahoo!</a></li><li class=\"pa4 sp\"><a class=\"sp\" href=\"http://us.ard.yahoo.com/SIG=15lurjpsa/M=650008.12777167.13811118.2268219/D=wt/S=16335623:HEAD/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=Q_uzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5851058/R=8/SIG=10niob72s/*http://news.yahoo.com\" title=\"Yahoo! News\" target=\"_top\">News</a></li><li class=\"pa5 sp\"><a class=\"sp\" href=\"http://us.ard.yahoo.com/SIG=15lurjpsa/M=650008.12777167.13811118.2268219/D=wt/S=16335623:HEAD/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=Q_uzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5851058/R=9/SIG=10q40gpus/*http://finance.yahoo.com\" title=\"Yahoo! Finance\" target=\"_top\">Finance</a></li><li class=\"pa6 sp\"><a class=\"sp\" href=\"http://us.ard.yahoo.com/SIG=15lurjpsa/M=650008.12777167.13811118.2268219/D=wt/S=16335623:HEAD/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=Q_uzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5851058/R=10/SIG=10pcalhda/*http://sports.yahoo.com\" title=\"Yahoo! Sports\" target=\"_top\">Sports</a></li></ul><div id=\"pa-right\" class=\"sp\"></div></div></div></div><div id=\"yahoo\" class=\"ygmaclr\"><div id=\"ygmabot\"> <a id=\"ygmalogo\" href=\"http://us.ard.yahoo.com/SIG=15lurjpsa/M=650008.12777167.13811118.2268219/D=wt/S=16335623:HEAD/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=Q_uzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5851058/R=11/SIG=10q80c6r6/*http://weather.yahoo.com\" target=\"_top\"><img id=\"ygmalogoimg\" width=\"213\" height=\"30\" src=\"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif\" alt=\"Yahoo! Weather\"></a></div><div id=\"ygma-search\"><form class=\"ygmaclr\" id=\"sf\" action=\"http://search.yahoo.com/search\" method=\"GET\"><div class=\"fieldset\"> <span class=\"ygma-search-wrapper\" role=\"search\"><label id=\"ygma-lbl\" for=\"ygmasearchInput\" class=\"offscrn\">Search</label>
<input type=\"text\" class=\"sp normal\" id=\"ygmasearchInput\" name=\"p\" value=\"Search\" onblur=\"if(this.value==''){this.value='Search';this.style.color='#999';this.style.fontWeight='normal';}\" onfocus=\"if(this.value=='Search'){this.value='';this.style.color='#000';this.style.fontWeight='bold';}\" maxlength=\"100\" autocomplete=\"off\" /> <input type=\"hidden\" id=\"fr\" name=\"fr\" value=\"ush-weather\" /> </span> <span class=\"ygma-search-wrapper\"> <span class=\"btn sp\"> <span class=\"first-child\"> <button name=\"ygmasrchbtn\" id=\"ygmasrchbtn\" value=\"Web Search\" type=\"submit\">Web Search </button> </span> </span> </span></div></form></div></div></div></div></div><script charset=\"utf-8\" type=\"text/javascript\" src=\"http://l.yimg.com/a/lib/uh/15/js/uh_rsa-1.0.8.js\"></script><script language=javascript>
if(window.yzq_d==null)window.yzq_d=new Object();
window.yzq_d['Q_uzCEwNBkU-']='&U=13fkrbmu8%2fN%3dQ_uzCEwNBkU-%2fC%3d650008.12777167.13811118.2268219%2fD%3dHEAD%2fB%3d5851058%2fV%3d1';
</script><noscript><img width=1 height=1 alt=\"\" src=\"http://us.bc.yahoo.com/b?P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14t92st17%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d2.1%2fW%3dH%2fY%3dYAHOO%2fF%3d708995236%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fQ%3d-1%2fS%3d1%2fJ%3d498B8862&U=13fkrbmu8%2fN%3dQ_uzCEwNBkU-%2fC%3d650008.12777167.13811118.2268219%2fD%3dHEAD%2fB%3d5851058%2fV%3d1\"></noscript>
        <div id=\"yw-north\" align=\"center\"><!--Vendor: Doubleclick, Format: IFRAME -->
<script type=\"text/javascript\" language=\"javascript\">
var ran = Number(new Date()) + Math.floor(Math.random() * 9999999999);var ad_content ='<IFRAME SRC=\"http://ad.doubleclick.net/adi/N3754.yahoodispl/B4091031.3;sz=728x90PI=yahoodispl_weather_728x90;dcopt=rcl;mtfIFPath=nofile;click=http://us.ard.yahoo.com/SIG=15gjf29st/M=735126.13860909.13853309.34241/D=wt/S=16335623:N/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=MvuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5924356/R=0/*;ord=' + ran + '?\" WIDTH=728 HEIGHT=90 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR=\"#000000\"><SCRIPT language=\"JavaScript1.1\" src=\"http://ad.doubleclick.net/adj/N3754.yahoodispl/B4091031.3;abr=!ie;sz=728x90PI=yahoodispl_weather_728x90;click=http://us.ard.yahoo.com/SIG=15gjf29st/M=735126.13860909.13853309.34241/D=wt/S=16335623:N/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=MvuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5924356/R=1/*;dcopt=rcl;mtfIFPath=nofile;ord=' + ran + '\"><\\/SCRIPT><NOSCRIPT><A HREF=\"http://us.ard.yahoo.com/SIG=15gjf29st/M=735126.13860909.13853309.34241/D=wt/S=16335623:N/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=MvuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5924356/R=2/SIG=13pd6cl9a/*http://ad.doubleclick.net/jump/N3754.yahoodispl/B4091031.3;abr=!ie4;abr=!ie5;sz=728x90PI=yahoodispl_weather_728x90;ord=' + ran + '?\"><IMG SRC=\"http://ad.doubleclick.net/ad/N3754.yahoodispl/B4091031.3;abr=!ie4;abr=!ie5;sz=728x90PI=yahoodispl_weather_728x90;ord=' + ran + '?\" BORDER=0 WIDTH=728 HEIGHT=90 ALT=\"Click Here\"></A></NOSCRIPT></IFRAME>';
document.write(ad_content);
</script><script language=javascript>
if(window.yzq_d==null)window.yzq_d=new Object();
window.yzq_d['MvuzCEwNBkU-']='&U=13a05l806%2fN%3dMvuzCEwNBkU-%2fC%3d735126.13860909.13853309.34241%2fD%3dN%2fB%3d5924356%2fV%3d1';
</script><noscript><img width=1 height=1 alt=\"\" src=\"http://us.bc.yahoo.com/b?P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14u85ft9k%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d2.1%2fW%3dH%2fY%3dYAHOO%2fF%3d1372063652%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fQ%3d-1%2fS%3d1%2fJ%3d498B8862&U=13a05l806%2fN%3dMvuzCEwNBkU-%2fC%3d735126.13860909.13853309.34241%2fD%3dN%2fB%3d5924356%2fV%3d1\"></noscript></div>
        <ul id=\"yw-hdmenu\"><li class=\"first on\"><div><a href=\"http://news.yahoo.com/\"><b>Home</b></a></div></li><li class=\"\"><div><a href=\"http://news.yahoo.com/us\"><b>U.S.</b></a></div></li><li class=\"\"><div><a href=\"http://news.yahoo.com/business\"><b>Business</b></a></div></li><li class=\"\"><div><a href=\"http://news.yahoo.com/world\"><b>World</b></a></div></li><li class=\"\"><div><a href=\"http://news.yahoo.com/entertainment\"><b>Entertainment</b></a></div></li><li class=\"\"><div><a href=\"http://news.yahoo.com/sports\"><b>Sports</b></a></div></li><li class=\"\"><div><a href=\"http://news.yahoo.com/technology\"><b>Tech</b></a></div></li><li class=\"\"><div><a href=\"http://news.yahoo.com/politics\"><b>Politics</b></a></div></li><li class=\"\"><div><a href=\"http://news.yahoo.com/science\"><b>Science</b></a></div></li><li class=\"\"><div><a href=\"http://news.yahoo.com/health\"><b>Health</b></a></div></li><li class=\"\"><div><a href=\"http://news.yahoo.com/travel\"><b>Travel</b></a></div></li><li class=\"\"><div><a href=\"http://news.yahoo.com/most-popular\"><b>Most Popular</b></a></div></li></ul><ul id=\"yw-submenu\"><li class=\"first\"><a href=\"http://news.yahoo.com/video\">Video</a></li><li class=\"\"><a href=\"http://news.yahoo.com/photos\">Photos</a></li><li class=\"\"><a href=\"http://news.yahoo.com/blog\">Blog</a></li><li class=\"\"><a href=\"http://news.yahoo.com/opinion\">Opinion</a></li><li class=\"\"><a href=\"http://news.yahoo.com/local\">Local</a></li><li class=\"\"><a href=\"http://news.yahoo.com/odd\">Odd News</a></li><li class=\"\"><a href=\"http://news.yahoo.com/comics\">Comics</a></li><li class=\"on\"><a href=\"http://weather.yahoo.com/\">Weather</a></li><li class=\"\"><a href=\"http://news.yahoo.com/you-witness\">You Witness News</a></li><li class=\"\"><a href=\"http://news.yahoo.com/health/vitality\">Vitality</a></li><li class=\"\"><a href=\"http://news.yahoo.com/page/sitemap\">Site Index</a></li></ul>
       
        <div id=\"yw-hdsearch\"><h2>Search</h2><form class=\"sch\" action=\"http://news.search.yahoo.com/news/search\" id=\"ynw-s1\" name=\"search\" method=\"get\" target=\"_top\" ><div><fieldset><legend>Yahoo! News</legend><label for=\"p\">Search:</label> <input class=\"text\" type=\"text\" value=\"\" size=\"40\" name=\"p\" id=\"p\"/> <label for=\"c\" class=\"hdn\">in</label><select name=\"c\" id=\"c\"><option value=\"\">All News</option><option value=\"yahoo_news\" selected>Yahoo! News Only</option><option value=\"images\">News Photos</option><option value=\"av\">Video/Audio</option></select> <input type=\"submit\" title=\"Search\" value=\"Search\" class=\"submit\"/><input type=\"hidden\" value=\"UTF-8\" name=\"ei\"/> <a href=\"http://news.search.yahoo.com/news/advanced\">Advanced</a></fieldset></div></form></div>       
        <div id=\"yw-headtitle\">
            <div class=\"yw-weatherlogo\">
                <a href=\"http://us.ard.yahoo.com/SIG=15lrdntkk/M=385205.13531777.13598110.8629072/D=wt/S=16335623:WCL1/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=PfuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=4012299/R=0/SIG=14c861sut/*http://yahoo.weather.com/?par=yahoo&site=www.yahoo.com&promo=masthead&cm_ven=Yahoo&cm_cat=www.yahoo.com&cm_pla=weatherpage&cm_ite=HomePage\"><img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/nws/weather/wthrchnllgo.gif\" width=55 height=52 border=0 alt=\"The Weather Channel\"></a><script language=javascript>
if(window.yzq_d==null)window.yzq_d=new Object();
window.yzq_d['PfuzCEwNBkU-']='&U=13ffpiloe%2fN%3dPfuzCEwNBkU-%2fC%3d385205.13531777.13598110.8629072%2fD%3dWCL1%2fB%3d4012299%2fV%3d1';
</script><noscript><img width=1 height=1 alt=\"\" src=\"http://us.bc.yahoo.com/b?P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14u41a4op%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d2.1%2fW%3dH%2fY%3dYAHOO%2fF%3d1383971310%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fQ%3d-1%2fS%3d1%2fJ%3d498B8862&U=13ffpiloe%2fN%3dPfuzCEwNBkU-%2fC%3d385205.13531777.13598110.8629072%2fD%3dWCL1%2fB%3d4012299%2fV%3d1\"></noscript>
            </div>
<div class=\"yw-ulmwrap\"><h1>Weather</h1></div></div>       
    </div>
    <div id=\"bd\" class=\"clear\">
        <div class=\"yui-t6\">
            <div id=\"yui-main\">
                <div class=\"yui-b\">
                    <div class=\"yui-index-search\">
    <form name=\"pform\" id=\"pform\" action=\"/search/weather\" method=\"get\" onsubmit=\"return searchVal('pform');\">
    <fieldset><legend>Yahoo! weather Search</legend>
    <div id=\"yw-search\">Enter city or zip code:</div>
        <div class=\"search-frmbdy\">
    <label class=\"hdn\" for=\"loca-location\">Search</label><input type=\"textbox\" value=\"\" autocomplete=\"off\" id=\"loca-location\" name=\"location\" class=\"size1 location-widget-trigger\"/><label class=\"hdn\" for=\"t\"> </label><input name=\"\" type=\"t\" id=\"t\" value=\"\" class=\"hdn\"><input id=\"loca-submit\" type=\"submit\" value=\" Go \" class=\"size1 location-widget-trigger\"/><br \\=\"\"/>        </div>
    <div id=\"yw-search-frmbdy\"><!-- --></div>    </fieldset>
    </form>

<script type=\"text/javascript\">
    var searchVal = function(form) {
        return false;
    }
</script>
</div>

                   
                   
                    <div id=\"yw-worldweather\" class=\"yw-categories\">
    <h2>Browse for U.S. and International Forecasts</h2>
    <ul class=\"columns\">
    <li><a href=\"/united-states/;_ylt=AsH3Jrwgn9NdK92ok8gpVbgHQ_kA\">United States</a></li><li><a href=\"/regional/africa/;_ylt=AvHAdnIfoPZUykwH4lw9bREHQ_kA\">Africa</a></li><li><a href=\"/regional/asia/;_ylt=AmadGyf6vuxdIS95xGtFyikHQ_kA\">Asia</a></li><li><a href=\"/regional/caribbean/;_ylt=AmqLiClsmEYtlR17RvXSJ8IHQ_kA\">Caribbean</a></li></ul><ul class=\"columns\"><li><a href=\"/regional/central-america/;_ylt=AoGz3IZAq0SX1cffUKeWu_gHQ_kA\">Central America</a></li><li><a href=\"/regional/europe/;_ylt=AuSf7UChLaADC8vo8_Saxn0HQ_kA\">Europe</a></li><li><a href=\"/regional/middle-east/;_ylt=AuYznxeX6mfiu5XVvRfnMbAHQ_kA\">Middle East</a></li><li><a href=\"/regional/north-america/;_ylt=AkMUoI8a1prxiidG32kWNpEHQ_kA\">North America</a></li></ul><ul class=\"columns\"><li><a href=\"/regional/oceania/;_ylt=AtT0FZCTA4KFCq9xPtd4me4HQ_kA\">Oceania</a></li><li><a href=\"/regional/pacific-rim/;_ylt=Agdrc4T29GM8r.bBLdJGGHoHQ_kA\">Pacific Rim</a></li><li><a href=\"/regional/south-america/;_ylt=AtsMJmD9ZmpKIxBPcj_nu.QHQ_kA\">South America</a></li></div>

                    <div id=\"yw-alerts\">
    <strong>Get Alerts:</strong>
    <a class=\"mobile\" href=\"http://us.rd.yahoo.com/weather/resources/mobilealerts;_ylt=AlKaJXu5GFpWm7Q3ncc3.mUHQ_kA/*http://alerts.yahoo.com/alerts/rdr.php?nep=weathermobile\">Mobile</a>
    <a class=\"bulletins\" href=\"http://us.rd.yahoo.com/weather/resources/bulletins;_ylt=Agm990hWe1P0FniyN1wTRuAHQ_kA/*http://alerts.yahoo.com/alerts/rdr.php?nep=weathernews\">Weather Bulletins</a>
</div>

                    <div id=\"yw-weathermaps\" class=\"yw-categories\">
        <h2>Weather Maps</h2>
<div class=\"yui-skin-sam\">
<div id='ywMap' class='yui-navset'>
        <ul class='yui-nav'>
                <li class='selected' id='tab0Label'><a href='#tab0'><em>U.S. Regional Radar</em></a></li>
                <li id='tab1Label'><a href='#tab1'><em>U.S. Satellite</em></a></li><li id='tab2Label'><a href='#tab2'><em>North America Outlook</em></a></li><li id='tab3Label'><a href='#tab3'><em>Current Heat Index</em></a></li>        </ul>
          <div class='yui-content'>
                <div id='tab0'>
                        <img id='img0' alt='U.S. Regional Radar' title='U.S. Regional Radar' src='/images/us_radar_medium_usen.jpg' />
                </div>
                <div id='tab1'><img id='img1' alt='U.S. Satellite' title='U.S. Satellite'/><noscript><img src='/images/ussat_440x297.jpg' alt='U.S. Satellite'/></noscript></div><div id='tab2'><img id='img2' alt='North America Outlook' title='North America Outlook'/><noscript><img src='/images/na_outlookf_en_GB_440_mdy_y.jpg' alt='North America Outlook'/></noscript></div><div id='tab3'><img id='img3' alt='Current Heat Index' title='Current Heat Index'/><noscript><img src='/images/actheat_440x297.jpg' alt='Current Heat Index'/></noscript></div>        </div>
</div>
</div>
<ul class=\"columns\"><li><a href=\"/imgindex/index.html;_ylt=AuIA4hCC.IhimssrvfpG_bMHQ_kA\">U.S. Regional</a></li></ul><ul class=\"columns\"><li><a href=\"/imgindex/world.html;_ylt=Alwgi2OzqPzoxzk1Wy5w9_8HQ_kA\">World</a></li></ul><ul class=\"columns\"><li><a href=\"/imgindex/uscities.html;_ylt=AppI79bzeSeMu1fE5RvDCIIHQ_kA\">U.S. Cities</a></li></ul></div>
<script type=\"text/javascript\">
    var ywMap1='/images/ussat_440x297.jpg';var ywMap2='/images/na_outlookf_en_GB_440_mdy_y.jpg';var ywMap3='/images/actheat_440x297.jpg'; </script>

                   
<div id=\"yw-fullcoverage\" class=\"yw-categories\">
    <h2>Full Coverage</h2>
    <ul class=\"columns\">
        <li><a href=\"http://news.yahoo.com/topics/climate-change-and-global-warming\">Climate Change</a></li>
    </ul>
    <ul class=\"columns expand\">
        <li><a href=\"http://news.yahoo.com/topics/hurricanes-and-tropical-storms\">Hurricanes and Tropical Storms</a></li>
    </ul>
</div>
                    <div id=\"yw-newsfeatures\">
    <h2>Weather News and Features</h2>
    <div class=\"yw-newsimg\"><a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/*http://news.yahoo.com/s/afp/20100112/ts_alt_afp/usweathercrime\"><img alt=\"In Miami, sex offenders out in the cold \" width=\"130\" height=\"86\" border=\"0\" src=\"http://d.yimg.com/a/p/afp/20100112/capt.photo_1263305632066-1-0.jpg?x=130&y=86&q=85&sig=oZxLooT5b_t4T1PgHa2Nzw--\"></a></div><h3><a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/*http://news.yahoo.com/s/afp/20100112/ts_alt_afp/usweathercrime\">In Miami, sex offenders out in the cold </a></h3><em>AFP-Tue, 12 Jan 2010 06:18:59 PST</em><p>AFP - Florida's oddly frigid weather has spelled nightmare for tourism, potential disaster for the citrus industry and cold comfort for sex offenders living rough under a bridge here.</p>     <div class=\"yw-newsoptions\" id=\"ywNewsOptions\">
        View:
        <a id=\"menulink_\" href=\"#\">Headlines Only</a> |
        <a id=\"menuoption2_\" href=\"#\">Include Summaries</a> |
        <a class=\"on\" id=\"menuoption3_\" href=\"#\">Include Photos</a>
    </div>
    <div id=\"yw-news\">
    <ul>
    <li><div class=\"yw-newsimg\"><a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/*http://news.yahoo.com/s/ap/20100112/ap_on_re_us/us_weatherpage_weather\"><img alt=\"The nation's weather \" width=\"123\" height=\"130\" border=\"0\" src=\"http://d.yimg.com/a/p/ap/20100111/capt.5e0a9fde871841f3acf30e492102075d.weather_national_ny1.jpg?x=123&y=130&q=85&sig=oYI0_g32Nkxv3BCBSXBJvA--\"></a></div><a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/*http://news.yahoo.com/s/ap/20100112/ap_on_re_us/us_weatherpage_weather\">The nation's weather </a><em>AP - Tue, 12 Jan 2010 02:09:53 PST</em><p>AP - Snow showers were expected to diminish over the Great Lakes as precipitation strengthened over the Pacific Northwest on Tuesday.</p></li><li><div class=\"yw-newsimg\"><a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/*http://news.yahoo.com/s/afp/20100112/wl_asia_afp/taiwanquake\"><img alt=\"Shallow quake hits off Taiwan \" width=\"130\" height=\"108\" border=\"0\" src=\"http://d.yimg.com/a/p/afp/20100112/capt.photo_1263260694310-1-0.jpg?x=130&y=108&q=85&sig=m4troXXq2iu4qBXif_OlpQ--\"></a></div><a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/*http://news.yahoo.com/s/afp/20100112/wl_asia_afp/taiwanquake\">Shallow quake hits off Taiwan </a><em>AFP - Mon, 11 Jan 2010 17:46:27 PST</em><p>AFP - A shallow 5.1-magnitude earthquake jolted waters off Taiwan and the southernmost tip of Japan Tuesday, US geologists said, but there was no immediate tsunami warning.</p></li><li><div class=\"yw-newsimg\"><a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/*http://news.yahoo.com/s/afp/20100111/ts_alt_afp/usweather\"><img alt=\"In Florida, no reprieve from Arctic blast \" width=\"130\" height=\"89\" border=\"0\" src=\"http://d.yimg.com/a/p/afp/20100111/capt.photo_1263220298237-1-0.jpg?x=130&y=89&q=85&sig=l8osTz.DlSUlErnCw426zw--\"></a></div><a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/*http://news.yahoo.com/s/afp/20100111/ts_alt_afp/usweather\">In Florida, no reprieve from Arctic blast </a><em>AFP - Mon, 11 Jan 2010 06:32:06 PST</em><p>AFP - Florida woke Monday to another day of bone-chilling temperatures after days of Arctic air that have kept the southern United States -- including the usually balmy Sunshine State -- in a deep freeze.</p></li><li><div class=\"yw-newsimg\"><a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/*http://news.yahoo.com/s/nm/20100111/us_nm/us_florida_citrus_freeze\"><img alt=\"Freeze mauls Florida citrus, significant damage seen \" width=\"130\" height=\"84\" border=\"0\" src=\"http://d.yimg.com/a/p/rids/20100111/i/r3843183981.jpg?x=130&y=84&q=85&sig=OmBqg91xxCQWrbOjEUPy9A--\"></a></div><a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/*http://news.yahoo.com/s/nm/20100111/us_nm/us_florida_citrus_freeze\">Freeze mauls Florida citrus, significant damage seen </a><em>Reuters - Mon, 11 Jan 2010 12:57:07 PST</em><p>Reuters - Freezing temperatures mauled Florida's citrus groves overnight, inflicting significant damage on the orange crop, producers said on Monday, although it could take weeks to see if there was long-term tree loss.</p></li>   
        <li><a class=\"newsMore\" href=\"http://news.yahoo.com/news?tmpl=index2&cid=1112\">» More weather news</a></li>
    </ul>
    </div>
</div>
                   
                   
                </div>
            </div>
            <div class=\"yui-b\">
                <div id=\"yw-weathercom\">
    <h2>More from Weather.com</h2>
    <ul><li><a href=\"http://us.ard.yahoo.com/SIG=15l9iuglp/M=385205.13531759.13598113.1660042/D=wt/S=16335623:WTH0/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=NPuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5932592/R=0/SIG=163lpg9dp/*http://yahoo.weather.com/maps/activity/holidays/uswhitechristmasforecast_large.html?par=yahoo&site=www.yahoo.com&promo=storm&cm_ven=Yahoo&cm_cat=www.yahoo.com&cm_pla=weatherpage&cm_ite=Holidays\"><strong>Snow on Christmas?</strong></a><br><script language=javascript>
if(window.yzq_d==null)window.yzq_d=new Object();
window.yzq_d['NPuzCEwNBkU-']='&U=13fu1feca%2fN%3dNPuzCEwNBkU-%2fC%3d385205.13531759.13598113.1660042%2fD%3dWTH0%2fB%3d5932592%2fV%3d1';
</script><noscript><img width=1 height=1 alt=\"\" src=\"http://us.bc.yahoo.com/b?P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14s58c2lf%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d2.1%2fW%3dH%2fY%3dYAHOO%2fF%3d15192944%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fQ%3d-1%2fS%3d1%2fJ%3d498B8862&U=13fu1feca%2fN%3dNPuzCEwNBkU-%2fC%3d385205.13531759.13598113.1660042%2fD%3dWTH0%2fB%3d5932592%2fV%3d1\"></noscript></li><li><a href=\"http://us.ard.yahoo.com/SIG=15lp7co5h/M=385205.13531691.13598115.1660044/D=wt/S=16335623:WTH1/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=NfuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5932569/R=0/SIG=15jaqgg3s/*http://yahoo.weather.com/outlook/health/coldandflu/nationalreports/?&par=yahoo&site=www.yahoo.com&promo=storm&cm_ven=Yahoo&cm_cat=www.yahoo.com&cm_pla=weatherpage&cm_ite=ColdFlu\"><strong>National Flu Report</strong></a><br><script language=javascript>
if(window.yzq_d==null)window.yzq_d=new Object();
window.yzq_d['NfuzCEwNBkU-']='&U=13fpc8gju%2fN%3dNfuzCEwNBkU-%2fC%3d385205.13531691.13598115.1660044%2fD%3dWTH1%2fB%3d5932569%2fV%3d1';
</script><noscript><img width=1 height=1 alt=\"\" src=\"http://us.bc.yahoo.com/b?P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14u2q58fa%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d2.1%2fW%3dH%2fY%3dYAHOO%2fF%3d1668422631%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fQ%3d-1%2fS%3d1%2fJ%3d498B8862&U=13fpc8gju%2fN%3dNfuzCEwNBkU-%2fC%3d385205.13531691.13598115.1660044%2fD%3dWTH1%2fB%3d5932569%2fV%3d1\"></noscript></li><li><a href=\"http://us.ard.yahoo.com/SIG=15lpsj7sp/M=385205.13531689.13598117.1660051/D=wt/S=16335623:WTH2/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=NvuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5932570/R=0/SIG=15a1n3l02/*http://yahoo.weather.com/outlook/events/nfl/schedule?par=yahoo&site=www.yahoo.com&promo=storm&cm_ven=Yahoo&cm_cat=www.yahoo.com&cm_pla=weatherpage&cm_ite=SportingEvents\">NFL Forecast</a><br><script language=javascript>
if(window.yzq_d==null)window.yzq_d=new Object();
window.yzq_d['NvuzCEwNBkU-']='&U=13fngvncm%2fN%3dNvuzCEwNBkU-%2fC%3d385205.13531689.13598117.1660051%2fD%3dWTH2%2fB%3d5932570%2fV%3d1';
</script><noscript><img width=1 height=1 alt=\"\" src=\"http://us.bc.yahoo.com/b?P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14uv7i5e6%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d2.1%2fW%3dH%2fY%3dYAHOO%2fF%3d3739947982%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fQ%3d-1%2fS%3d1%2fJ%3d498B8862&U=13fngvncm%2fN%3dNvuzCEwNBkU-%2fC%3d385205.13531689.13598117.1660051%2fD%3dWTH2%2fB%3d5932570%2fV%3d1\"></noscript></li><li><a href=\"http://us.ard.yahoo.com/SIG=15ls7rsg3/M=385205.13531737.13598118.1660062/D=wt/S=16335623:WTH3/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=N_uzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5224557/R=0/SIG=14fm9faud/*http://yahoo.weather.com/newscenter/?par=yahoo&site=www.yahoo.com&promo=top&cm_ven=Yahoo&cm_cat=www.yahoo.com&cm_pla=weatherpage&cm_ite=Other\">Severe Weather News</a><br><script language=javascript>
if(window.yzq_d==null)window.yzq_d=new Object();
window.yzq_d['N_uzCEwNBkU-']='&U=13fmo1kov%2fN%3dN_uzCEwNBkU-%2fC%3d385205.13531737.13598118.1660062%2fD%3dWTH3%2fB%3d5224557%2fV%3d1';
</script><noscript><img width=1 height=1 alt=\"\" src=\"http://us.bc.yahoo.com/b?P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14u9haigb%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d2.1%2fW%3dH%2fY%3dYAHOO%2fF%3d1067480613%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fQ%3d-1%2fS%3d1%2fJ%3d498B8862&U=13fmo1kov%2fN%3dN_uzCEwNBkU-%2fC%3d385205.13531737.13598118.1660062%2fD%3dWTH3%2fB%3d5224557%2fV%3d1\"></noscript></li><li><a href=\"http://us.ard.yahoo.com/SIG=15laooesn/M=385205.13531651.13598119.1660064/D=wt/S=16335623:WTH4/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=OPuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5932571/R=0/SIG=1618o4tlr/*http://yahoo.weather.com/activities/travel/businesstraveler/welcome.html??par=yahoo&site=www.yahoo.com&promo=storm&cm_ven=Yahoo&cm_cat=www.yahoo.com&cm_pla=weatherpage&cm_ite=BusinessTraveler\">Airport Delays?</a><br><script language=javascript>
if(window.yzq_d==null)window.yzq_d=new Object();
window.yzq_d['OPuzCEwNBkU-']='&U=13fhqi5eu%2fN%3dOPuzCEwNBkU-%2fC%3d385205.13531651.13598119.1660064%2fD%3dWTH4%2fB%3d5932571%2fV%3d1';
</script><noscript><img width=1 height=1 alt=\"\" src=\"http://us.bc.yahoo.com/b?P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14u1tumt1%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d2.1%2fW%3dH%2fY%3dYAHOO%2fF%3d1701469586%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fQ%3d-1%2fS%3d1%2fJ%3d498B8862&U=13fhqi5eu%2fN%3dOPuzCEwNBkU-%2fC%3d385205.13531651.13598119.1660064%2fD%3dWTH4%2fB%3d5932571%2fV%3d1\"></noscript></li><li><a href=\"http://us.ard.yahoo.com/SIG=15lmkthd0/M=385205.13531727.13598120.1660079/D=wt/S=16335623:WTH5/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=OfuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5932572/R=0/SIG=166mn5die/*http://yahoo.weather.com/outlook/travel/destination-guides/drilldown/world-map?par=yahoo&site=www.yahoo.com&promo=storm&cm_ven=Yahoo&cm_cat=www.yahoo.com&cm_pla=weatherpage&cm_ite=DestinationGuide\">Travel Destination Guide</a><br><script language=javascript>
if(window.yzq_d==null)window.yzq_d=new Object();
window.yzq_d['OfuzCEwNBkU-']='&U=13fftqu46%2fN%3dOfuzCEwNBkU-%2fC%3d385205.13531727.13598120.1660079%2fD%3dWTH5%2fB%3d5932572%2fV%3d1';
</script><noscript><img width=1 height=1 alt=\"\" src=\"http://us.bc.yahoo.com/b?P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14u6fskqn%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d2.1%2fW%3dH%2fY%3dYAHOO%2fF%3d3508312049%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fQ%3d-1%2fS%3d1%2fJ%3d498B8862&U=13fftqu46%2fN%3dOfuzCEwNBkU-%2fC%3d385205.13531727.13598120.1660079%2fD%3dWTH5%2fB%3d5932572%2fV%3d1\"></noscript></li></ul><div class=\"weatherLogo\"><a href=\"http://us.ard.yahoo.com/SIG=15le9g6v0/M=385205.13531675.13598111.8629074/D=wt/S=16335623:WCL2/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=OvuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=4012300/R=0/SIG=14c861sut/*http://yahoo.weather.com/?par=yahoo&site=www.yahoo.com&promo=masthead&cm_ven=Yahoo&cm_cat=www.yahoo.com&cm_pla=weatherpage&cm_ite=HomePage\"><img src=\"http://us.i1.yimg.com/us.yimg.com/i/us/nws/weather/wthrchnllgo.gif\" width=55 height=52 border=0 alt=\"The Weather Channel\"></a><script language=javascript>
if(window.yzq_d==null)window.yzq_d=new Object();
window.yzq_d['OvuzCEwNBkU-']='&U=13fh3m7dp%2fN%3dOvuzCEwNBkU-%2fC%3d385205.13531675.13598111.8629074%2fD%3dWCL2%2fB%3d4012300%2fV%3d1';
</script><noscript><img width=1 height=1 alt=\"\" src=\"http://us.bc.yahoo.com/b?P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14u7psqmf%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d2.1%2fW%3dH%2fY%3dYAHOO%2fF%3d1585295627%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fQ%3d-1%2fS%3d1%2fJ%3d498B8862&U=13fh3m7dp%2fN%3dOvuzCEwNBkU-%2fC%3d385205.13531675.13598111.8629074%2fD%3dWCL2%2fB%3d4012300%2fV%3d1\"></noscript></div></div>
                <div class=\"yui-b\"><div class=\"yw-ad\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"ad_slug_table\"><tr><td align=\"center\"><span class=\"ad_slug\"><font face=\"Arial\" size=\"-2\" class=\"ad_slug_font\">ADVERTISEMENT</font><br /></span>
<!--Vendor: Right Media, Format: IFrame -->
<script type=\"text/javascript\" language=\"javascript\">var YAHOO = YAHOO || {};YAHOO.RT = YAHOO.RT || {};YAHOO.RT.ADS = YAHOO.RT.ADS || {};function rtAd_endTime(fName){var et = fName + \"_endTime\";YAHOO.RT.ADS[et] = Number(new Date());}function rtAd_startTime(){this.fName = \"\";this.url = \"\";this.startTime = function(){var fr = document.getElementById(this.fName);if(fr) {var st = this.fName + \"_startTime\";YAHOO.RT.ADS[st] = Number(new Date());fr.src=this.url;}}}function rtAd_write(content, adurl, id){document.write(content);YAHOO.RT.ADS['startTimeObj_'+id] = new rtAd_startTime();YAHOO.RT.ADS['startTimeObj_'+id].fName = id;YAHOO.RT.ADS['startTimeObj_'+id].url = adurl;window.setTimeout(\"YAHOO.RT.ADS['startTimeObj_\"+id+\"'].startTime()\", 1);}
var ran = Number(new Date()) + Math.floor(Math.random() * 9999999999);var rt_ad_content ='<iframe id=\"rt_id_'+ran+'\" ONLOAD=\"rtAd_endTime(\\'rt_id_'+ran+'\\')\" FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=300 HEIGHT=250 ></IFRAME>  ';
var rt_ad_id = \"rt_id_\"+(ran);
var rt_ad_url = \"http://ad.yieldmanager.com/st?ad_type=iframe&ad_size=300x250&section=632917&x=http://us.ard.yahoo.com/SIG=15l0sf3gj/M=736994.13901068.13885133.1784727/D=wt/S=16335623:LREC/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=QvuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5752459/R=0/*%24&rnd=1263330141458868\";
rtAd_write(rt_ad_content, rt_ad_url, rt_ad_id);
</script>
<noscript>
<IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=300 HEIGHT=250 SRC=\"http://ad.yieldmanager.com/st?ad_type=iframe&ad_size=300x250&section=632917&x=http://us.ard.yahoo.com/SIG=15l0sf3gj/M=736994.13901068.13885133.1784727/D=wt/S=16335623:LREC/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=QvuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5752459/R=1/*%24&rnd=1263330141458868\"></IFRAME> 
</noscript></td></tr></table><script language=javascript>
if(window.yzq_d==null)window.yzq_d=new Object();
window.yzq_d['QvuzCEwNBkU-']='&U=13f3a6idq%2fN%3dQvuzCEwNBkU-%2fC%3d736994.13901068.13885133.1784727%2fD%3dLREC%2fB%3d5752459%2fV%3d1';
</script><noscript><img width=1 height=1 alt=\"\" src=\"http://us.bc.yahoo.com/b?P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14uvset6c%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d2.1%2fW%3dH%2fY%3dYAHOO%2fF%3d1817949351%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fQ%3d-1%2fS%3d1%2fJ%3d498B8862&U=13f3a6idq%2fN%3dQvuzCEwNBkU-%2fC%3d736994.13901068.13885133.1784727%2fD%3dLREC%2fB%3d5752459%2fV%3d1\"></noscript></div></div>
                <div class=\"yui-b\"><div id=\"yw-myloc\" class=\" yui-skin-sam\">
                    <div class=\"myloc-hd\" id=\"ywTest\">
                        <h2>My Saved Locations</h2>
                        <a style=\"display:none\" id=\"ywSavedLoc\"></a><script type=\"text/javascript\">document.write(\"<a href=\\\"http://login.yahoo.com/config/login?.done=http%3A%2F%2Fweather.yahoo.com%2F&.src=yw&.intl=us\\\">Add</a>\")</script>                    </div>
                    <div id=\"myloc-msg\"></div>
                    <div id=\"myLocContainer\">
                    <ul>
<li id=\"ywmyloc2379574\">
<a href=\"/united-states/illinois/chicago-2379574/;_ylt=ArTwTfzmnjdbx6ie94AYSGQHQ_kA\" title=\"Full forecast for Chicago, Illinois, United States (Light Snow)\" >Chicago, IL</a>

                                <em>17...28 °F</em>

                                <div class=\"yw-temperature\">

                                    <div class=\"yw-iconcontainer\">

                                        <div class=\"yw-iconbg yw-nightbg\"></div>

                     <div class=\"yw-wicons\"><img id=\"wiff\" style=\"background-position: -854px -0px; width: 61px; height: 34px\"  alt=\"Light Snow\" src=\"http://l.yimg.com/a/lib/ywc/img/spacer.gif\"/></div>

                    </div>

                                </div>

                            </li>
<li id=\"ywmyloc44418\">
<a href=\"/england/greater-london/london-44418/;_ylt=AotNEwHbl2TlYcOglRy_0J0HQ_kA\" title=\"Full forecast for London, Greater London, England (Cloudy)\" >London, GB</a>

                                <em>33...36 °F</em>

                                <div class=\"yw-temperature\">

                                    <div class=\"yw-iconcontainer\">

                                        <div class=\"yw-iconbg yw-nightbg\"></div>

                     <div class=\"yw-wicons\"><img id=\"wiff\" style=\"background-position: -1586px -0px; width: 61px; height: 34px\"  alt=\"Cloudy\" src=\"http://l.yimg.com/a/lib/ywc/img/spacer.gif\"/></div>

                    </div>

                                </div>

                            </li>
<li id=\"ywmyloc2459115\">
<a href=\"/united-states/new-york/new-york-2459115/;_ylt=AkW28dMcCwr1Xus_ksB_D4YHQ_kA\" title=\"Full forecast for New York, New York, United States (Cloudy)\" >New York, NY</a>

                                <em>25...32 °F</em>

                                <div class=\"yw-temperature\">

                                    <div class=\"yw-iconcontainer\">

                                        <div class=\"yw-iconbg yw-nightbg\"></div>

                     <div class=\"yw-wicons\"><img id=\"wiff\" style=\"background-position: -1586px -0px; width: 61px; height: 34px\"  alt=\"Cloudy\" src=\"http://l.yimg.com/a/lib/ywc/img/spacer.gif\"/></div>

                    </div>

                                </div>

                            </li>
<li id=\"ywmyloc2487956\">
<a href=\"/united-states/california/san-francisco-2487956/;_ylt=Ai7DncCowcPPWiyqQrWz5TwHQ_kA\" title=\"Full forecast for San Francisco, California, United States (Mostly Cloudy)\" >San Francisco, CA</a>

                                <em>52...59 °F</em>

                                <div class=\"yw-temperature\">

                                    <div class=\"yw-iconcontainer\">

                                        <div class=\"yw-iconbg yw-nightbg\"></div>

                     <div class=\"yw-wicons\"><img id=\"wiff\" style=\"background-position: -1647px -0px; width: 61px; height: 34px\"  alt=\"Mostly Cloudy\" src=\"http://l.yimg.com/a/lib/ywc/img/spacer.gif\"/></div>

                    </div>

                                </div>

                            </li>
</ul>
                    </div>
                </div>
                               
         <script type=\"text/javascript\">
             var addLocSuccess  = \"Locations updated successfully\";
             var addLocMaxLimit = \"You have reached the maximum limit of locations\";
             var addLocAdded    = \"Location already added to the list\";
             var addLocFailed   = \"Location update failed\";
             var addLocCrumb    = \"p9eRU7zDScE\";
             var addLocFCUnit   = \"F\";
             var delLocText     = \"Delete\";
             var maxLocMsg      = \"You have reached the maximum number of locations. Please remove a location before attempting to add another.\";
        </script>

<!-- My Saved Display -->
<div id=\"yUpdatedMesg\">
        <div class=\"bdUpdatedMesg\">
                  <div id=\"yDispMesg\">
                         We have improved the coverage of weather locations. Some of the locations saved earlier may need to be updated by you. 
                  </div>
        </div>
</div>

</div>
                <div class=\"yui-b\"><div id=\"yw-weathervideos\">
    <h3>Weather Video</h3>
    <div class=\"yw-video\">
                <a class=\"yw-videoimg\" href=\"javascript:void(window.open('http://us.rd.yahoo.com/dailynews/external/wcom/av_wcom_forc/07ede09e4c7205a61a3eab668767ca74/34703671;_ylt=AlNzSSVl_iazXfSu.Qe5ua0lYfME/*http://news.yahoo.com/video/weather-15749664/17580959','playerWindow','width=793,height=608,scrollbars=no'));\"><img width=\"60\" height=\"45\" border=\"1\" alt=\"Breaking Weather Video\" src=\"http://d.yimg.com/a/p/weathercom/20100112/vidsthumb.58b05c107c99f26fe89fd2d9ed307109.jpg\"></a>
                <div>
                    <a href=\"javascript:void(window.open('http://us.rd.yahoo.com/dailynews/external/wcom/av_wcom_forc/07ede09e4c7205a61a3eab668767ca74/34703671;_ylt=AlNzSSVl_iazXfSu.Qe5ua0lYfME/*http://news.yahoo.com/video/weather-15749664/17580959','playerWindow','width=793,height=608,scrollbars=no'));\">Topstory</a>
                    <p>(1/12/2010 11:20 AM)</p>
                </div>
            </div><div class=\"yw-video\">
                <a class=\"yw-videoimg\" href=\"javascript:void(window.open('http://us.rd.yahoo.com/dailynews/external/wcom/av_wcom_forc/536d2b57ad1b0425a142c26111fdbcbc/34703670;_ylt=AngKZXpiHkW_RHDZv8c5A7ElYfME/*http://news.yahoo.com/video/weather-15749664/17581078','playerWindow','width=793,height=608,scrollbars=no'));\"><img width=\"60\" height=\"45\" border=\"1\" alt=\"Breaking Weather Video\" src=\"http://d.yimg.com/a/p/weathercom/20100112/vidsthumb.bf225243e83d6ae3b915d7b156b046cf.jpg\"></a>
                <div>
                    <a href=\"javascript:void(window.open('http://us.rd.yahoo.com/dailynews/external/wcom/av_wcom_forc/536d2b57ad1b0425a142c26111fdbcbc/34703670;_ylt=AngKZXpiHkW_RHDZv8c5A7ElYfME/*http://news.yahoo.com/video/weather-15749664/17581078','playerWindow','width=793,height=608,scrollbars=no'));\">National Forecast</a>
                    <p>(1/12/2010  7:30 AM)</p>
                </div>
            </div><div class=\"yw-video\">
                <a class=\"yw-videoimg\" href=\"javascript:void(window.open('http://us.rd.yahoo.com/dailynews/external/accuweather/av_accuweather/1a933745c5769a40f1cec01b58655827/34704397;_ylt=AsTnPvqal_erNnJfJPbYVlslYfME/*http://news.yahoo.com/video/weather-15749664/17582005','playerWindow','width=793,height=608,scrollbars=no'));\"><img width=\"60\" height=\"45\" border=\"1\" alt=\"Breaking Weather Video\" src=\"http://d.yimg.com/a/p/accuweathercom/20100112/vidsthumb.28298aa116afe14d395b8b169e307066.jpg\"></a>
                <div>
                    <a href=\"javascript:void(window.open('http://us.rd.yahoo.com/dailynews/external/accuweather/av_accuweather/1a933745c5769a40f1cec01b58655827/34704397;_ylt=AsTnPvqal_erNnJfJPbYVlslYfME/*http://news.yahoo.com/video/weather-15749664/17582005','playerWindow','width=793,height=608,scrollbars=no'));\">Joe Bastardi's Big Dog</a>
                    <p>(1/12/2010  7:25 AM)</p>
                </div>
            </div>   
    <a class=\"yw-morevideos\" href=\"/vidindex/index.html;_ylt=AjBWJWFtbieLZDJpRV2PdzAlYfME\">» Show all weather videos</a>
</div>
</div>
                <div class=\"yui-b\"><div class=\"yw-ad\"><a href=\"http://us.ard.yahoo.com/SIG=15kou5700/M=731609.13380240.13480436.8662131/D=wt/S=16335623:MIP/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=RPuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5677297/R=0/SIG=12672i03m/*http://new.music.yahoo.com/videos/BritneySpears/Womanizer--201579760\" target=\"_blank\"><img src=\"http://ads.yimg.com/a/a/ya/yahoo_music6/102308_music_mv_britney_womanizer_mip_300x125.jpg\" alt=\"click here\" width=\"300\" height=\"125\" border=\"0\"></a><script language=javascript>
if(window.yzq_d==null)window.yzq_d=new Object();
window.yzq_d['RPuzCEwNBkU-']='&U=13e6b6cur%2fN%3dRPuzCEwNBkU-%2fC%3d731609.13380240.13480436.8662131%2fD%3dMIP%2fB%3d5677297%2fV%3d1';
</script><noscript><img width=1 height=1 alt=\"\" src=\"http://us.bc.yahoo.com/b?P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14ud81140%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d2.1%2fW%3dH%2fY%3dYAHOO%2fF%3d1737823215%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fQ%3d-1%2fS%3d1%2fJ%3d498B8862&U=13e6b6cur%2fN%3dRPuzCEwNBkU-%2fC%3d731609.13380240.13480436.8662131%2fD%3dMIP%2fB%3d5677297%2fV%3d1\"></noscript></div></div>
                <div class=\"yui-b\"><div class=\"yw-ad\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"ad_slug_table\"><tr><td align=\"center\"><span class=\"ad_slug\"><font face=\"Arial\" size=\"-2\" class=\"ad_slug_font\">ADVERTISEMENT</font><br /></span>
<IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=300 HEIGHT=250 SRC=\"http://ad.yieldmanager.com/st?_PVID=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&ad_type=iframe&ad_size=300x250&site=140503&section_code=13818257&cb=1263330141458868&zip=&ycg=&yyob=&pub_redirect_unencoded=1&pub_redirect=http://us.ard.yahoo.com/SIG=15nm4o6p5/M=715481.13818257.13825377.12879774/D=wt/S=16335623:LREC2/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=PPuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=5752724/R=0/*\"></IFRAME>
</td></tr></table><script language=javascript>
if(window.yzq_d==null)window.yzq_d=new Object();
window.yzq_d['PPuzCEwNBkU-']='&U=13hpmd27g%2fN%3dPPuzCEwNBkU-%2fC%3d715481.13818257.13825377.12879774%2fD%3dLREC2%2fB%3d5752724%2fV%3d1';
</script><noscript><img width=1 height=1 alt=\"\" src=\"http://us.bc.yahoo.com/b?P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14t6gmjme%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d2.1%2fW%3dH%2fY%3dYAHOO%2fF%3d799175715%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fQ%3d-1%2fS%3d1%2fJ%3d498B8862&U=13hpmd27g%2fN%3dPPuzCEwNBkU-%2fC%3d715481.13818257.13825377.12879774%2fD%3dLREC2%2fB%3d5752724%2fV%3d1\"></noscript></div></div>
            </div>
        </div>
    </div>
    <div id=\"ft\">
        <div id=\"yw-ftsearch\"><fieldset><legend>Yahoo! News</legend><h2>Search</h2><form class=\"sch\" action=\"http://news.search.yahoo.com/news/search\" id=\"ynw-s2\" name=\"search\" method=\"get\" target=\"_top\" ><div><label for=\"p\">Search:</label> <input class=\"text\" type=\"text\" value=\"\" size=\"30\" name=\"p\" id=\"p\"> <select name=\"c\" id=\"c\"><option value=\"\">All News & Blogs</option><option value=\"yahoo_news\">Yahoo! News Only</option><option value=\"news_photos\">News Photos</option><option value=\"av\">Video/Audio</option></select> <input type=\"submit\" title=\"Search\" value=\"Search\" class=\"submit\"><input type=\"hidden\" value=\"UTF-8\" name=\"ei\"/> <a href=\"http://news.search.yahoo.com/news/advanced\">Advanced</a></div></form><div class=\"yw-network\"><a href=\"http://www.yahoo.com\">Yahoo!</a> - <a href=\"http://my.yahoo.com\">My Yahoo!</a> - <a href=\"http://mail.yahoo.com\">Mail</a></div></fieldset></div> 
        <div id=\"yw-footernav\"><h2>Primary Navigation</h2><ul><li class=\"first\"><a href=\"http://news.yahoo.com/\">Home</a></li><li class=\"\"><a href=\"http://news.yahoo.com/i/718\">U.S.</a></li><li class=\"\"><a href=\"http://news.yahoo.com/i/749\">Business</a></li><li class=\"\"><a href=\"http://news.yahoo.com/i/721\">World</a></li><li class=\"\"><a href=\"http://news.yahoo.com/i/762\">Entertainment</a></li><li class=\"\"><a href=\"http://news.yahoo.com/i/755\">Sports</a></li><li class=\"\"><a href=\"http://news.yahoo.com/i/738\">Tech</a></li><li class=\"\"><a href=\"http://news.yahoo.com/i/703\">Politics</a></li><li class=\"\"><a href=\"http://news.yahoo.com/i/753\">Science</a></li><li class=\"\"><a href=\"http://news.yahoo.com/i/751\">Health</a></li><li class=\"\"><a href=\"http://news.yahoo.com/i/2683\">Travel</a></li><li class=\"\"><a href=\"http://news.yahoo.com/i/964\">Most Popular</a></li><li class=\"\"><a href=\"http://news.yahoo.com/i/757\">Odd News</a></li><li class=\"\"><a href=\"http://news.yahoo.com/i/742\">Opinion</a></li></ul></div> 
        <div id=\"yw-univfooter\">
            <script language=javascript> var ADFadids = \"5924356,-1,5932592,5932569,5932570,5224557,5932571,5932572,4012300,-1,5752724,4012299,5752459,5851058,5677297,-1,1222015\"; function ADFlaunch() {var w; var l=\"http://us.ard.yahoo.com/SIG=15jkl70hc/M=224039.2331706.3758956.2268223/D=wt/S=16335623:FOOT/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=RvuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=1222015/R=0/id=adfeedback/SIG=12eivnvt2/*http://surveys.yahoo.com/user_ad_feedback?source=16335623:FOOT&.q28=wt&.q26=\"+ADFadids; w=window.open(l,\"AdFeedbackWin\",\"toolbar=no,scrollbars=yes,resizable,location=no,height=400,width=640\"); }</script><font size=1 face=arial><b>Copyright © 1995-2010, <a href=\"http://us.ard.yahoo.com/SIG=15jkl70hc/M=224039.2331706.3758956.2268223/D=wt/S=16335623:FOOT/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=RvuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=1222015/R=1/SIG=14ak059rg/*http://yahoo.weather.com/?par=yahoo&site=www.yahoo.com&promo=footer&cm_ven=Yahoo&cm_cat=www.yahoo.com&cm_pla=weatherpage&cm_ite=HomePage\">The Weather Channel</a> Interactive, Inc. <br>Copyright © 2010 Yahoo! Inc. All Rights Reserved.<BR><a href=http://us.ard.yahoo.com/SIG=15jkl70hc/M=224039.2331706.3758956.2268223/D=wt/S=16335623:FOOT/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=RvuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=1222015/R=2/SIG=115gdgfpg/*http://help.yahoo.com/help/weather/>Help</a> - <a href=http://us.ard.yahoo.com/SIG=15jkl70hc/M=224039.2331706.3758956.2268223/D=wt/S=16335623:FOOT/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=RvuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=1222015/R=3/SIG=11o4g6d5e/*http://privacy.yahoo.com/privacy/us/weather/index.html>Privacy Policy</a> - <a href=\"http://us.ard.yahoo.com/SIG=15jkl70hc/M=224039.2331706.3758956.2268223/D=wt/S=16335623:FOOT/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=RvuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=1222015/R=4/SIG=11475d5s1/*http://info.yahoo.com/relevantads/\">About Our Ads</a> - <a href=\"http://us.ard.yahoo.com/SIG=15jkl70hc/M=224039.2331706.3758956.2268223/D=wt/S=16335623:FOOT/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=RvuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=1222015/R=5/SIG=1136qnvkg/*http://docs.yahoo.com/info/terms/\">Terms of Service</a> - <a href=http://us.ard.yahoo.com/SIG=15jkl70hc/M=224039.2331706.3758956.2268223/D=wt/S=16335623:FOOT/Y=YAHOO/EXP=1263337341/L=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl/B=RvuzCEwNBkU-/J=1263330141458868/K=eS4NtIo1gZrwwxD8_pqJmw/A=1222015/R=6/SIG=11lp7krrc/*http://docs.yahoo.com/info/copyright/copyright.html>Copyright/IP Policy</a> - <a href=\"javascript:ADFlaunch()\">Ad Feedback</a></b></font> <!-- SpaceID=16335623 loc=FSRVY noad -->
<script language=javascript>
if(window.yzq_d==null)window.yzq_d=new Object();
window.yzq_d['VvuzCEwNBkU-']='&U=12dglcknd%2fN%3dVvuzCEwNBkU-%2fC%3d-1%2fD%3dFSRVY%2fB%3d-1%2fV%3d0';
</script><noscript><img width=1 height=1 alt=\"\" src=\"http://us.bc.yahoo.com/b?P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14u99fa99%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d2.1%2fW%3dH%2fY%3dYAHOO%2fF%3d2288499985%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fQ%3d-1%2fS%3d1%2fJ%3d498B8862&U=12dglcknd%2fN%3dVvuzCEwNBkU-%2fC%3d-1%2fD%3dFSRVY%2fB%3d-1%2fV%3d0\"></noscript> <!-- SpaceID=16335623 loc=FR01 noad -->
<img src=\"http://ads.bluelithium.com/pixel?id=365079&t=2\" width=\"1\" height=\"1\" /><script language=javascript>
if(window.yzq_d==null)window.yzq_d=new Object();
window.yzq_d['VPuzCEwNBkU-']='&U=13fescrrc%2fN%3dVPuzCEwNBkU-%2fC%3d624324.13382202.13481659.12549985%2fD%3dSIP%2fB%3d5677391%2fV%3d1';
</script><noscript><img width=1 height=1 alt=\"\" src=\"http://us.bc.yahoo.com/b?P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14u5mounf%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d2.1%2fW%3dH%2fY%3dYAHOO%2fF%3d3509927509%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fQ%3d-1%2fS%3d1%2fJ%3d498B8862&U=13fescrrc%2fN%3dVPuzCEwNBkU-%2fC%3d624324.13382202.13481659.12549985%2fD%3dSIP%2fB%3d5677391%2fV%3d1\"></noscript><script language=javascript>
if(window.yzq_d==null)window.yzq_d=new Object();
window.yzq_d['RvuzCEwNBkU-']='&U=13djgog6m%2fN%3dRvuzCEwNBkU-%2fC%3d224039.2331706.3758956.2268223%2fD%3dFOOT%2fB%3d1222015%2fV%3d1';
</script><noscript><img width=1 height=1 alt=\"\" src=\"http://us.bc.yahoo.com/b?P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14tbv3mpc%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d2.1%2fW%3dH%2fY%3dYAHOO%2fF%3d451102902%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fQ%3d-1%2fS%3d1%2fJ%3d498B8862&U=13djgog6m%2fN%3dRvuzCEwNBkU-%2fC%3d224039.2331706.3758956.2268223%2fD%3dFOOT%2fB%3d1222015%2fV%3d1\"></noscript><!-- SpaceID=16335623 loc=RICH noad -->
<script language=javascript>
if(window.yzq_d==null)window.yzq_d=new Object();
window.yzq_d['RfuzCEwNBkU-']='&U=12cre9i61%2fN%3dRfuzCEwNBkU-%2fC%3d-1%2fD%3dRICH%2fB%3d-1%2fV%3d0';
</script><noscript><img width=1 height=1 alt=\"\" src=\"http://us.bc.yahoo.com/b?P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14tsda9v2%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d2.1%2fW%3dH%2fY%3dYAHOO%2fF%3d204999428%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fQ%3d-1%2fS%3d1%2fJ%3d498B8862&U=12cre9i61%2fN%3dRfuzCEwNBkU-%2fC%3d-1%2fD%3dRICH%2fB%3d-1%2fV%3d0\"></noscript>        </div>
       
    </div>
</div>
</body>

<script src=\"http://l.yimg.com/a/lib/ywc/js/ywutilsintl.0.8.min.js\" type=\"text/javascript\"></script>

</html>
<!-- weather:weather-us:0:Success -->
<script language=javascript>
if(window.yzq_p==null)document.write(\"<scr\"+\"ipt language=javascript src=http://l.yimg.com/d/lib/bc/bc_2.0.4.js></scr\"+\"ipt>\");
</script><script language=javascript>
if(window.yzq_p)yzq_p('P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14p18remv%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d1.1%2fW%3dJ%2fY%3dYAHOO%2fF%3d2903275868%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fS%3d1%2fJ%3d498B8862');
if(window.yzq_s)yzq_s();
</script><noscript><img width=1 height=1 alt=\"\" src=\"http://us.bc.yahoo.com/b?P=YYEe62KIih.8Uv8ES0twqxlaS6qnRktM410ABqpl&T=14tmqrtci%2fX%3d1263330141%2fE%3d16335623%2fR%3dwt%2fK%3d5%2fV%3d3.1%2fW%3dJ%2fY%3dYAHOO%2fF%3d372796774%2fG%3dCnVrCgo-%2fH%3dcGFnZXZhbHVlPWluZGV4%2fQ%3d-1%2fS%3d1%2fJ%3d498B8862\"></noscript>
<!-- fe5.weather.ac4.yahoo.com compressed/chunked Tue Jan 12 13:02:21 PST 2010 -->
" into type text.

Offline

 

#9 2010-01-12 05:18:03 pm

Kevin Bradley
Administrator
From:: Independence, MO
Registered: 2006-03-13
Posts: 548
Website

Re: Iron Man Script is here!

Try changing the line:

Applescript:

set websitesource to source of document 1

to

Applescript:

set websitesource to (source of document 1) as text

See if that fixes it.


Nitewing '98
--
I distrust morning people, largely because I suspect them of getting together early one day while the rest of us were asleep and setting up the rules of civilization.

Offline

 

#10 2010-01-12 11:53:04 pm

markm929
Member
Registered: 2009-11-23
Posts: 44

Re: Iron Man Script is here!

A few changes I found I needed to make were the following:

Changed

Applescript:

do JavaScript "document.forms[2].elements[1].click()" in document 1

to

Applescript:

do JavaScript "document.forms[2].submit()" in document 1

for the "go" (page submit) button to be clicked without dealing with the button object itself
---
the second "change" is a bit more tricky (This is the source of your HUGE error text throw nBattle...)

in the following line the "Today" needs to change to "Tonight" after a certain point, because it does in the source code for the webpage

Applescript:

set todayoffset to offset of "<strong>Today:</strong>" in websitesource

I put a try...on error to switch from Today to Tonight to have the script run correctly.  See full script below.

Also changed this

Applescript:

set todayweather to (characters 26 through (listoffset - 1) of partwebsitesource) as text

to

Applescript:

set todayweather to (characters 28 through (listoffset - 1) of partwebsitesource) as text

to account for a leading "/n" that is now picked up in the forecast

Added the following test to the sayTime routine to fix for when the minutes are less than 10 to say "eight-oh-eight" for 8:08 it said "eight-eight" with the original scripting

Applescript:

if myMinute < 10 then set myMinute to "0" & (myMinute as text)

Sorry for switching it all to Mail instead of Thunderbird, as I don't use that app.  Got lazy and didn't switch it all back.

edit:   Here is the edited script in its entirety:

Applescript:

(*This script is copyright by Curtranhome - All Rights Reserved - Complete Access to this script is for everyone, but will need to present the script to Curtranhome*)
tell application "iTunes"
   activate
   play the playlist ("Skillet")
end tell

set volume 6

delay (10)
set weatherurl to "[url]http://weather.yahoo.com/[/url]"
set city to "Sacramento Ca"

tell application "Safari"
   activate
   make new document with properties {URL:weatherurl}
   repeat
       set docstate to (do JavaScript "document.readyState" in document 1)
       if docstate is "complete" then
           exit repeat
       end if
   end repeat
   delay 5
   do JavaScript "document.forms[2].elements[0].value = \"" & city & "\"" in document 1
   do JavaScript "document.forms[2].submit()" in document 1
   delay 5
   set websitesource to source of document 1
   close document 1
   
   try
       set todayoffset to offset of "<strong>Today:</strong>" in websitesource
       set partwebsitesource to (characters todayoffset through -1 of websitesource) as text
   on error
       set todayoffset to offset of "<strong>Tonight:</strong>" in websitesource
       set partwebsitesource to (characters todayoffset through -1 of websitesource) as text
   end try
   
   set listoffset to offset of "F" in partwebsitesource
   set todayweather to (characters 28 through (listoffset - 1) of partwebsitesource) as text
end tell

tell application "Mail" to activate

delay (10)

(*Resize windows of iTunes, Safari and Mail*)
tell application "Finder"
   set screen_resolution to bounds of window of desktop
   set screen_width to item 3 of screen_resolution
   set screen_height to item 4 of screen_resolution
end tell


set desired_width to 1000

set side_space to screen_width - desired_width
set left_bound to (side_space / 2)
set right_bound to left_bound + desired_width
set bottom_bound to screen_height
set top_bound to 22 (* for the menu bar *)

try
   tell application "iTunes"
       activate
       set the bounds of the first window to {left_bound, top_bound, right_bound, bottom_bound}
   end tell
end try

try
   tell application "Mail"
       activate
       set the bounds of the first window to {left_bound, top_bound, right_bound, bottom_bound}
   end tell
end try

delay (5)

(*Say the Date*)
set myDate to get (current date)
set myMonth to get month of (current date)
set myDay to get day of (current date)
set myYear to get year of (current date)

set myDay to myDay & "th"


say ("today is: " & myMonth & space & myDay & space & myYear & "!")

(*say the current weather - scripted above*)
tell me
   say "and the weather is: " & todayweather & " degrees"
end tell

(*say the current time*)
sayTime()

delay (600)

(* Quit Mail *)
say "Mail will now quit"
tell application "Mail" to quit

(*say the time after everything is done*)
sayTime()

(*End of Script*)
on sayTime()
   
   set myHour to get hours of (current date)
   set myMinute to get minutes of (current date)
if myMinute < 10 then set myMinute to "0" & (myMinute as text)
   
   if myHour > 12 then
       set myHour to (myHour) - 12
       set ampm to "PM"
   else
       set ampm to "AM"
   end if
   say "it is now " & myHour & ":" & myMinute & space & ampm
end sayTime

Last edited by markm929 (2010-01-13 08:18:44 pm)

Offline

 

#11 2010-01-31 08:34:50 pm

mokhok
Member
Registered: 2010-02-01
Posts: 3

Re: Iron Man Script is here!

wow, this script is quite entertaining! i have tweaked it a little, and it is a ton of fun. thanks for posting it!

Offline

 

#12 2012-10-31 10:39:48 am

Curtranhome
Member
Registered: 2009-07-27
Posts: 19

Re: Iron Man Script is here!

Sorry for not keeping this feed alive for the last couple years, I've been busy with school and all... But anywho.. Anyone got any ideas to add to this? Now that we have new script updates (since the last post of this feed).

Model: iMac G5
Browser: Safari
Operating System: Mac OS X (10.5)

Offline

 

#13 2015-09-10 08:00:25 pm

Curtranhome
Member
Registered: 2009-07-27
Posts: 19

Re: Iron Man Script is here!

Hello everyone!

It's been a couple more years since the last post of this thread and would like to keep it open.

Since the last update, I've gained quite a bit more experience in the technology world and would like to post an updated version of the script after all the additions made to it over time as well as some modifications I have made to it to simplify it down. If anyone has any ideas they would like to toss into the mix, by all means do and post your results here!

Let's see what kind of fun we can have! big_smile

Applescript:


(*This script is copyright by Curtranhome - All Rights Reserved - Complete Access to this script is for everyone, but will need to present the script to Curtranhome*)
set myHour to get hours of (current date)
if myHour is greater than 12 then
   (*tell application "iTunes"
       activate
       play the playlist ("favorites")
   end tell
   
   set volume 6
   
   delay (10)*)

   set weatherurl to "[url]http://weather.yahoo.com/[/url]"
   set city to "Sacramento CA"
   
   tell application "Safari"
       activate
       make new document with properties {URL:weatherurl}
       repeat
           set docstate to (do JavaScript "document.readyState" in document 1)
           if docstate is "complete" then
               exit repeat
           end if
       end repeat
       delay 5
       do JavaScript "document.forms[2].elements[0].value = \"" & city & "\"" in document 1
       do JavaScript "document.forms[2].submit()" in document 1
       delay 5
       set websitesource to source of document 1
       close document 1
       
       try
           set todayoffset to offset of "<span class=\"num\">" in websitesource
           set partwebsitesource to (characters todayoffset through -1 of websitesource) as text
           display dialog "" & partwebsitesource & ""
       on error
           display dialog "Unable to get weather"
       end try
       
       set listoffset to offset of "F" in partwebsitesource
       set todayweather to (characters 19 through (listoffset - 192) of partwebsitesource) as text
       display dialog todayweather
   end tell
   
   tell application "Thunderbird" to activate
   
   (*Say the Date*)
   set myDate to get (current date)
   set myMonth to get month of (current date)
   set myDay to get day of (current date)
   set myYear to get year of (current date)
   
   set myDay to myDay & "th"
   
   
   say ("Today is: " & myMonth & space & myDay & space & myYear & "!")
   
   (*say the current weather - scripted above*)
   tell me
       say ". The current temperature is " & todayweather & " degrees fahrenheit."
   end tell
   
   (*say the time after everything is done*)
   sayTime()
else
   
end if
(*End of Script*)
on sayTime()
   
   set myHour to get hours of (current date)
   set myMinute to get minutes of (current date)
   if myMinute < 10 then set myMinute to "0" & (myMinute as text)
   
   if myHour > 12 then
       set myHour to (myHour) - 12
       set ampm to "PM"
   else
       set ampm to "AM"
   end if
   say "it is now " & myHour & ":" & myMinute & space & ampm
end sayTime

Model: Macbook Pro Early 2015
AppleScript: 2.4
Browser: Google Chrome 43
Operating System: Mac OS X (10.10)

Offline

 

#14 2015-11-01 06:21:06 am

ccstone
Member
Registered: 2009-02-07
Posts: 409

Re: Iron Man Script is here!

Don't do this!

Applescript:


set partwebsitesource to (characters todayoffset through -1 of websitesource) as text

By getting the characters you've unnecessarily created an enormous list, which can give AppleScript a headache and is very slow.

Do this instead:

Applescript:


set partwebsitesource to text todayoffset through -1 of websitesource

--
Chris
_________________________________________________________
{ MacBookPro6,1 · 2.66 GHz Intel Core i7 · 8GB RAM · OSX 10.11.1 }
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Offline

 

#15 2015-11-02 09:49:55 am

Curtranhome
Member
Registered: 2009-07-27
Posts: 19

Re: Iron Man Script is here!

Dang! This is exactly why I try and keep this alive! Still use the script today too big_smile

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)