How to set TaskPaper search from script?

This is how you can do that:

function TaskPaperContextScript(editor, itemPathFilter) {
  editor.itemPathFilter = itemPathFilter
}

Application("TaskPaper").documents[0].evaluate({
  script: TaskPaperContextScript.toString(),
  withOptions: "not @done"
})
1 Like

This is incredibly helpful. I was about to ask how to do this. Thanks @jessegrosjean!

1 Like