run shortcuts from wikilink

Posted by @jsamlarose, Last update over 2 years ago

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]]


  • script

    // See online documentation for examples
    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)


  • 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.