Action

Blink Selection

Posted by David Blue, Last update over 2 years ago

Runs the selected text as a command in Blink Shell. If no text is selected, the whole draft contents will be passed.

Steps

  • script

    // setup and request credentials
    let credential = Credential.create("Blink", "Enter your local Blink URL Key (found in Settings->X-Callback-URL.)");
    
    credential.addPasswordField("key", "Blink URL Key");
    credential.authorize();
    
    const key = credential.getValue("key");
    
    draft.setTemplateTag("urlkey", key);
  • url (iOS only)

    template
    blinkshell://run?key=[[urlkey]]&cmd=[[selection]]
    useSafari
    false
    encodeTags
    true

Options

  • After Success Nothing
    Notification Info
    Log Level Error
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.