Last active
July 17, 2019 13:44
-
-
Save marshallvaughn/540323658c7f3bcfce453eb13c2c200c to your computer and use it in GitHub Desktop.
Gets the to dos from "Today" list, and filters by area "Work"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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