Matthew Palmer Top Articles Vanilla Rocket Kubernetes Book Standing Invitation

Templates and Predefined Lists in Things

If you have collections of tasks that you do every now and then, Things can’t quite handle it. It has powerful support for recurring tasks, but only on a fixed timeline—it has no concept of presets, predefined lists, or templates.

A few examples of how this is helpful:

Save the following in Script Editor on your Mac. I recommend using Fast Scripts to run your scripts from the menu bar.

tell application "Things"
  set Todos to paragraphs of (read (choose file with prompt "Pick text file containing todos"))
  set myProjects to {}
  
  repeat with pr in to dos of list "Projects"
    copy pr's name to the end of myProjects
  end repeat
  
  set selectedValues to (choose from list myProjects with title "Choose Project" with prompt "Select a location (Cancel to send to Inbox)")
  
  repeat with nextTodo in Todos
    if length of nextTodo is greater than 0 then
      if selectedValues is not false then
        if (count of selectedValues) is greater than 0 then
          -- The user has selected a project to save the todos to
          set projectName to beginning of selectedValues
          set newTodo to make new to do ¬
            with properties {name:nextTodo} ¬
            at beginning of project projectName
        end if
      else
        -- The user has not select a project. Add to Inbox.
        set newTodo to make new to do ¬
          with properties {name:nextTodo}
      end if
    end if
  end repeat
end tell

The source of the items needs to be a text file, with each new todo item on a new line.

After you choose the source, you can pick a project for them to go to. Or you can hit ‘Cancel’ (unintuitive, huh) and it will add everything to Next.

And here’s what running it looks like.

Step One

Choose a source for your predefined list

Step Two

Choose a destination in Things

Step Three—Finished

Now your template is in Things

My products
💅 Vanilla – hide icons from your Mac menu bar for free
🚀 Rocket – super-fast emoji shortcuts everywhere on Mac… :clap: → 👏
Horo – the best free timer app for Mac
📂 FastFolderFinder – a lightning-fast launchbar app for folders and apps
📖 Kubernetes – my book on Kubernetes for web app developers
😄 Emoji Bullet List – easily emojify your bullet point lists (like this one!)

Jump on my email list to get sent the stuff that’s too raunchy for the blog.
(Seriously though, it’s an occasional update on apps I’ve built and posts I’ve written recently.)