Label text for the marker.
The number of characters in the range.
Indentation level of the marker.
The start location of the range of text representing the marker.
Prefix text for the marker. Example: H1
, H2
in Markdown
An array of numbers containing the location (index in string), and length (number of characters) of a text selection.
The current running action.
Reference to current app object.
Current device.
The current draft points to the draft open in the editor when the action was run.
The active editor
Shows a simple alert dialog containing the message.
Include the contents of a script loaded from iCloud Drive. The contents of the script will be evaluated as if they were inline with the current script. Useful for loading reusable libraries and utility scripts.
relative path to javascript file in the iCloud Drive /Drafts/Library/Scripts
folder. For example, to load the script in the file test.js
in the iCloud Drive/Drafts/Library/Scripts/Utilities/
folder, use the path parameter Utilities/test.js
.
Format date using strftime format string. See strftime format reference for supported format strings.
Generated using TypeDoc
An object describing a navigation location, as defined by the syntax definition in use in the editor