Skip to content

Instantly share code, notes, and snippets.

@benjamineskola
Last active November 30, 2022 09:57
Show Gist options
  • Star 23 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save benjamineskola/2d1a122273087e45118da46944545bd8 to your computer and use it in GitHub Desktop.
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
-- 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
@feedmybongos
Copy link

Thanks for sharing this. Is there any way to replicate this applescript/automation on iOS?

@michaelbmiller
Copy link

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