About the Scripting category
Keeping scripts in Drafts and using js eval() in code editor
Writing a Drafts script step which can also run in macOS BBEdit
Using the JS `!` operator to toggle true ⇄ false settings
Lost work on a long script
First JS script... appending to an existing draft
How to store an authorization token?
Recipes :: Working with a subset of lines in a draft
Faster Drafts scripting and less debugging – use `map` for simpler code
Using the Todoist REST API with Drafts
Speeding up and enriching the (test ⇄ adjust) cycle for Drafts script actions (`let` in lieu of `var`)
Twitter.create keeps failing, unsure how to debug
Editor: move caret to a specific position
Wherefore is 'var for' simple or quick for scripting Drafts?
Any chance of callbacks in Prompts?
Date Parse format, can’t get ordinal suffix
JS :: Summing numbers over a range of lines (with Array.reduce)
Trying to get my arms around Scripting in Drafts
JS :: More general use of Array.reduce - partitioning lines or drafts into two groups
JS :: Simpler interactions between 2 or more script steps
JS :: Use Array.reduce to move done items to the end of the draft content
JS :: Building prompts with Array.reduce and Object.assign
JS :: Array.findIndex – simplifies use of Draft.query
next page →