Running into a couple unexpected outcomes using the new “tab” scripting options; not sure if I’ve found a bug or I’m using it wrong.
On an M1 Pro Mac running Ventura 13.3.1 (a), Drafts 39.0 (259), the command alert(app.currentWindow.canOpenTab)
returns false
, even though I think this should always be true?
Additionally, the command:
const g = app.currentWindow.openInNewTab(Draft.find("DRAFT_UUID"))
alert(g)
where the UUID is a legitimate draft UUID, opens the requested draft, but the alert returned is also false
. On the chance that triggering the alert causes the false
for some reason, I also tried this with displayInfoMessage
and still got a falsy result.
Essentially, openInNewTab
does work, but I can’t seem to get a true
response from either openInNewTab
or canOpenTab
. I do love the tab capability, though — thanks for adding it!