drafts-script-reference
drafts-script-reference copied to clipboard
Typescript based documentation for Drafts javascript environment
The message parameter for the fail() method is not specified in the definition file or generated docs as optional, but the description indicates it is, and it appears to be...
Playing around with the Todoist integration for scripting, and my linter in VSCode was yelling at me because of the the following: I think it's because this: https://github.com/agiletortoise/drafts-script-reference/blob/fcfa91a8bd5c5b9c10f06089fc6e288c32279778/src/Todoist.d.ts#L190-L194 Needs to...
[Editor Class Reference Page](https://scripting.getdrafts.com/classes/Editor) This page features the following example code: ```javascript // get the currently selected text let text = editor.getSelectedText() // replace selected text with uppercased version editor.setSelectedText(text.toUppercase())...