-
-
Save csreed/161ad05bb15b84537072 to your computer and use it in GitHub Desktop.
AppleScript to flag tasks deferred until today
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
on run | |
tell application "OmniFocus" | |
set todayDate to current date | |
set todayDate's hours to 0 | |
set todayDate's minutes to 0 | |
set todayDate's seconds to 0 | |
set tomorrowDate to todayDate + 1 * days | |
tell default document | |
set todayTasks to (flattened tasks where (defer date ≥ todayDate and defer date < tomorrowDate)) | |
repeat with t in todayTasks | |
set t's flagged to true | |
end repeat | |
end tell | |
end tell | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment