Jun
20
Listing the day’s reminders using Apple Script
June 20, 2013 | 1 Comment
I use Geek Tool and enjoy displaying the day’s todos and other information right on my desktop.
I wanted to display my upcoming Reminders (those I have fun creating with Siri) but didn’t want the future ones showing up.
With some inspiration from this script, I came up with the following gist :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | tell application "Reminders" set output to "" set output to output & "Reminders for " & weekday of (current date) & ":" set myList to "Reminders" set hasOne to false if (count of (reminders in list myList whose completed is false)) > 0 then set todoList to reminders in list myList whose completed is false repeat with itemNum from 1 to (count of (reminders in list myList whose completed is false)) set reminderObj to item itemNum of todoList set nameObj to name of reminderObj set compDateObj to due date of reminderObj if (compDateObj is not missing value) then set dayInt to day of compDateObj set monthInt to month of compDateObj as integer set yearInt to year of compDateObj if (dayInt = day of (current date) and monthInt = month of (current date) as integer and yearInt = year of (current date)) then if hasOne is false then set output to output & linefeed & "Reminders:" & linefeed set hasOne to true end if set output to output & "• " & nameObj end if end if end repeat else --set output to output & "No Reminders for Today" end if return output end tell |
Filed under: Mac OS X
Tagged with: apple script, geeklets, geektools, reminders
Liked this page?
Tweet it
Tweet
Subscribe to the RSS feed or sign up for the newsletter now.
Hi,
Is it possible for an absolute beginner to do this? If so, could you provide some setup tips?