Skip to content

Instantly share code, notes, and snippets.

@marshallvaughn
Last active July 17, 2019 13:44
Show Gist options
  • Save marshallvaughn/540323658c7f3bcfce453eb13c2c200c to your computer and use it in GitHub Desktop.
Save marshallvaughn/540323658c7f3bcfce453eb13c2c200c to your computer and use it in GitHub Desktop.
Gets the to dos from "Today" list, and filters by area "Work"
set dt to current date
set time of dt to 0
log dt
tell application "Things3"
set toDos to to dos in list "Today"
set str to ""
repeat with td in toDos
try
set areaName to (name of area of td) as text
if areaName = "Work" then
set str to str & "[ ] " & (name of td) & "
"
end if
end try
end repeat
set toDos to to dos in list "Logbook" whose completion date is greater than dt
repeat with td in toDos
set str to (str & "[x] " & name of td as text) & "
"
end repeat
return str
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment