Trim and Copy

Posted by tinytamb, Last update about 1 month ago

Steps

  • script

    // See online documentation for examples
    // https://docs.getdrafts.com/docs/actions/scripting
    
    
    var text = draft.content.trim();
    app.setClipboard(text);

Options

  • After Success Default
    Notification Info
    Log Level Info
Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.