Applescript and Reminders

I am trying to move a reminder from list “New List” to list “Tickler” with the following code:


tell application "Reminders"
    set ticklerList to list "Tickler"
    set includeList to {"New List"}
    repeat with i from 1 to count of every list
        set theList to name of list i
        if includeList contains theList then
            if (count of (reminders in list theList whose completed is false)) > 0 then
                set todoList to (reminders in list theList whose completed is false)
                repeat with j from 1 to (count of (reminders in list theList whose completed is false))
                    set reminderObj to item j of todoList
                    set nameObj to name of reminderObj
                    if due date of reminderObj exists then
                        move item j of todoList to ticklerList
                    end if
                end repeat
            end if
        end if
    end repeat
end tell

The reminder disappears from “New List” but never shows up in “Tickler”. Any thoughts as to why?

Model: iMac
AppleScript: 2.5
Browser: Safari 600.8.2
Operating System: Mac OS X (10.10)

Hi there,

Give this a try…


tell application "Reminders"
	
	set ticklerList to list "Tickler"
	set includeList to {"New List"}
	
	repeat with thislist in every list
		
		set theListName to name of thislist
		set todoList to (reminders in list theListName whose completed is false)
		
		if includeList contains theListName and ((count of todoList) > 0) then
			
			repeat with thisReminder in todoList

				if due date of thisReminder exists then
					move thisReminder to ticklerList
				end if

			end repeat
			
		end if
		
	end repeat
	
end tell

HTH