Thursday, October 1, 2015

NFL Prime Time iCal calendar

iCal Calendar icon
UPDATE: click here for the 2011 NFL Prime Time calendar in iCal format.

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, macman@ioperating.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"
end if
--
end repeat
end tell

and here's the NFL Prime Time calendar, ready for you to click on and import.

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 the entire NFL schedule in iCal form.

any question? enter your email below and I will help you