Well, here is a start...  This does not fully work because the "make new" 
functions are not actually making a new window / tab .

Also a shell script (UNIX) using curl and say would be only three lines and 
would be a little more responsive, though you would need to get a little fancy 
with "sed" to limit the paragraphs.

set myZip to 22031 as text
set myURL to 
"http://braille.wunderground.com/cgi-bin/findweather/hdfForecast?brand=braille&query=";
 & myZip
tell application "WebKit"
        try
                set theLocation to the first item of windows
        on error
                set theLocation to make new window at front
        end try
        set mytext to the text of {tab 1 of theLocation}
        
        set myWindow to make new tab at first tab of theLocation with 
properties {URL:myURL}
        delay 3
        set Forcast to myWindow's text as text
        set Forcast to paragraphs 1 through 8 of Forcast as text
        close myWindow
end tell
say Forcast

-- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/macvisionaries?hl=en.

Reply via email to