Last active
November 30, 2022 09:57
-
-
Save benjamineskola/2d1a122273087e45118da46944545bd8 to your computer and use it in GitHub Desktop.
Automatically set repeating tasks tagged ‘Evening’ to be done this evening, in Things 3 — updated versions here: https://github.com/benjamineskola/things-scripts/blob/master/evening.applescript
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
-- run first thing in the morning, e.g., from cron | |
tell application "Things3" | |
set theToken to "your-auth-token" | |
set theTodos to to dos of list "Today" | |
repeat with aTodo in theTodos | |
set tagList to tags of aTodo | |
repeat with aTag in tagList | |
if (name of aTag as text) is "Evening" | |
if class of aTodo is project | |
set urlCommand to "update-project" | |
else | |
set urlCommand to "update" | |
end if | |
set theUrl to "things:///" & urlCommand & "?auth-token=" & theToken & "&id=" & (id of aTodo as text) & "&when=evening" | |
open location theUrl | |
end if | |
end repeat | |
end repeat | |
end tell |
Thanks for sharing this. Is there any way to replicate this applescript/automation on iOS?
I was wondering the same.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing this. Is there any way to replicate this applescript/automation on iOS?