PopClip JavaScript API Reference
    Preparing search index...

    Variable $Const

    The global $ — the shell tag, implementing ShellTag. The convenient way to run a shell command:

    // #popclip speak definition example
    // name: Speak Definition
    // entitlements: [script]
    const word = popclip.input.text.trim();
    const definition = util.getDictionaryDefinition(word) ?? "no definition";
    await $`say ${definition}`;