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}`; Copy
// #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}`;
The global
$— the shell tag, implementing ShellTag. The convenient way to run a shell command: