Length of Selection and Draft

Posted by Chris Grieser, Last update about 3 years ago

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


  • script

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


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