I wanted an iCal calendar of the prime-time NFL games (Monday Night Football, the Sunday night game, the occasional Thursday night game) but I couldn’t find one online. I did find the entire NFL schedule, but that was way more than I wanted. Solution: I imported the entire NFL schedule, then wrote an AppleScript to remove every game whose starting time was before 4 PM. Simple. Here’s the script, for educational purposes…
— By Christian Boyce, email@example.com
tell application “iCal”
set the_games to every event in calendar “NFL”
repeat with i from 1 to (count of the_games)
set the_start_date to start date of item i of the_games
set the_day to word 1 of (the_start_date as string)
set the_hour to character 1 of time string of the_start_date as string
if the_hour is not greater than 3 then
set the_event_id to uid of item i of the_games
delete event id the_event_id of calendar “NFL”
and here’s the NFL Prime Time calendar, ready for you to click on and import.
UPDATE: The South Endzone site now provides the Prime Time calendar (in addition to many others). No need to run the AppleScript any more.
Note: you will get the chance to put this calendar’s events into one of your existing iCal calendars. That’s probably not a good idea. Choose the “New Calendar” option when asked and I think you’ll be happier.
Thanks to http://www.southendzone.com/ for doing all the work.