Created
March 21, 2013 21:18
-
-
Save BillKeenan/5216861 to your computer and use it in GitHub Desktop.
applescript to get weather for toronto
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set weather to "curl " & quote & "http://weather.yahooapis.com/forecastrss?p=CAXX0504&u=c" & quote | |
set postWeather to "grep -E '(Current Conditions:|C<BR)'" | |
set forecast to do shell script weather & " | " & postWeather | |
(characters 1 through -7 of paragraph 2 of forecast) as string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment