Action
run shortcuts from wikilink
Use in conjunction with Markdown + extras syntax, or make appropriate adjustments to the link definitions in the syntax of your choosing to make use of this.
Enables wiki-links that can invoke shortcuts by name. Allows for text input to be passed to the named shortcut after a forward slash e.g. [[sc:shortcut name/optional text input here]]
Steps
-
script
// See online documentation for examples // https://docs.getdrafts.com/docs/actions/scripting let [target,input] = draft.content.split("/") target = encodeURI(target) if (input !== null || input !== "") { input = "&input=" + encodeURI(input) } else { input = "" } app.openURL("shortcuts://run-shortcut?name=" + target + input)
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.