AppleScript for OF - Selecting tasks based on specific project names / tags


#1

Hi,

I was wondering if it was possible currently to select tasks based on specific projects or tags of tasks. For example, is it possible to do the following:

set task_elements to flattened tasks whose ¬
(completed is false ) and (flagged = yes ) and (tag = “sample tag name”) and (project = “sample project name”)

If it is possible, what would the correct syntax be?

Thanks in advance.
Silas


#2

Each one of the constructs below return a list.

To target a…

Project with name: sample project name.

flattened projects whose name = “sample project name”

Tag with name: sample project name.

flattened tags whose name = “sample tag name”

P.S.: flagged property is of type boolean, so you would need to write flagged = true.