Action

Lookup

Posted by agiletortoise, Last update 11 months ago

Lookup the selected text from the editor. On iOS this opens the system reference view, the same as selecting “Lookup” from the popup menu over a text selection. On Mac, it opens the selected text in the system Dictionary app.

Steps

  • script

    const term = editor.getSelectedText()
    
    if (term.length > 0) {
    	app.lookup(term)
    }
    else {
    	alert("Select text to lookup before running this action.")
    }

Options

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