Skip to content

Instantly share code, notes, and snippets.

@BillKeenan
Created March 21, 2013 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BillKeenan/5216861 to your computer and use it in GitHub Desktop.
Save BillKeenan/5216861 to your computer and use it in GitHub Desktop.
applescript to get weather for toronto
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