Action
Tag Example
Last update
almost 6 years ago
- Unlisted
Steps
-
script
function showPalette(actions) { // Create palette var p = Prompt.create() // Add one button for each of the actions array members for (i = 0; i < actions.length; i++) { p.addButton(actions[i]) } // Put up palette if (p.show()) { // Didn't cancel return p.buttonPressed } else return "" } let result = showPalette(["journal 1","journal 2","journal 3"]) if (result != "") draft.setTemplateTag("journaltitle", result); else context.cancel();
-
insertText
template dayone://post?entry={{[[drafts]]}}&journal={{[[journaltitle]]}}
Options
-
After Success Default Notification Info Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.