Trying to write a script that creates a note with a specific title if it doesn’t already exist.
d = Draft.queryByTitle("Foo") alert(JSON.stringify(d));
alerts with the value
A draft exists with the title ‘Foo’ and I would expect that to be returned.
Is anyone else successfully using queryByTitle? This is using Drafts 25.0.12 on OSX.