Action

Length of Selection and Draft

Posted by Chris Grieser, Last update over 3 years ago

counts the number of characters in the selection and the draft in total

Steps

  • script

    let selected = draft.selectionLength;
    let complete = draft.content.length;
    
    app.displayInfoMessage("Selection: " + selected.toString() + " chars, Total: " + complete.toString()+ " chars");

Options

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