Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Show daily weather forecasts in iCal as all-day events' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Show daily weather forecasts in iCal as all-day events
Authored by: TonyT on Apr 03, '09 06:54:42PM

Nice! I like the iCal view, and since the Forecast in now in ~/Library/Calendars,
I can use a sed script to view the forecast in Terminal:

sed -n '
/SUMMARY/ {; s/SUMMARY:\ */ - / ; H; g; s/.\n// g; p; }
/DESCRIPTION/ {
s/DESCRIPTION://; h
:loop
n; /^[ ^I]/ {; s/^ //; H; b loop
}; g; s/.\n// g; p; a\
---
}' ~/Library/Calendars/DC55F949-DF29-481D-825A-B9D1120A4A26.calendar/Events/*



[ Reply to This | # ]