Yes, that's what I needed, the entire function. I got it to compile and run and produce some reasonable results, but it's not done yet. Here is the code back:
on getOverdueReminders()
#I seem to have to do this or I get what seem to be casting errors
set {myName, myPriority, myDueDate, myRemindMeDate, myCreationDate, myModificationDate, myBody, myList} to {0, 0, 0, 0, 0, 0, 0, 0}
set myFinalList to {} #list of records, each record one reminder
tell application "Reminders"
#get the actual reminders that are not done and should have been done by now
set overdueReminders to reminders whose (completed is false) # and (due date < (current date))
if length of overdueReminders > 0 then #extract all information
repeat with r in overdueReminders
set myName to name of r
set myDueDate to due date of r
set myRemindMeDate to remind me date of r
set myCreationDate to creation date of r
set myModificationDate to modification date of r
set myPriority to priority of r
set myB to body of r
set myFinalList to myFinalList & myName & ", "
# set my finalList to my finalList & {name:name, notes:notes, priority:priority, list:list, due_date:dueDate, modification_date:modificationDate, remind_me_date:remindMeDate, creation_date:creationDate}
end repeat
end if
end tell
return myFinalList
end getOverdueReminders
display dialog "Overdue Reminders: " & getOverdueReminders() as text
1. Get the "and" working in the "whose" clause.
2. Have "myFinalList" return more than a list of names.
I'll work with it some more. Let me know if you get a new version of the code.