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.

Screen Shot 2013-06-20 at 11.22.33 PM

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: , , ,

Liked this page?

Tweet it

Subscribe to the RSS feed or sign up for the newsletter now.

Posts related to Listing the day’s reminders using Apple Script

1 Comment to "Listing the day’s reminders using Apple Script"

  1. Comment by Vic on September 29, 2014 at 5:32 am Reply

    Hi,
    Is it possible for an absolute beginner to do this? If so, could you provide some setup tips?

Name (required)

Email (required)

Website

Leave a Reply

  • About Me


    photo of Samantha Halfon Samantha Halfon
    Software Engineer
    blueKiwi software
    Paris, France
    I enjoy playing with my computer(s), listening to Bob Dylan (and related artists) and watching movies (especially if they were directed by Martin Scorsese or John Cassavetes). Sometimes, I play a little guitar... If not doing any of the above, I am either riding a small red bike around Paris, or, making videos. About my videomaking please check out World Wide Angle and its blog.