Get "someday attribute" of Things project with applescript/JXA?

#1

Hi,

I am trying to list all my open projects in things. This works.
But I want to differentiate between the projects that are set to “Someday”, and those that are not.

As an example, I give the JXA script I have to only show open projects.
It also shows that the activationDate for someday projects is null (if you have any).

I appreciate any help.
The Things Applescript guide was not helpful in this regard and neither did the Applescript/JXA dictionaries in the ScriptEditor help me.

things = Application("Things3")
projects = things.projects()

for (i in projects){
            project = projects[i]
            if (project.status() == "open") {
               console.log(project.name()+" "+project.activationDate())
	        }
        }
0 Likes