Drafts Action Directory

Paste

Posted by agiletortoise, Last update 13 days ago

Paste contents of clipboard.

Install

Steps

  • script

    // paste clipboard
    let text = app.getClipboard();
    let [st, len] = editor.getSelectedRange();
    
    editor.setSelectedText(text);
    editor.setSelectedRange(st+text.length, 0);
    
    

Options

  • After Success Default
    Notification Error
    Log Level Error

Comments

Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.