Update checked-in dependencies
This commit is contained in:
parent
4fad06f438
commit
40a500c743
4168 changed files with 298222 additions and 374905 deletions
19
node_modules/run-applescript/index.js
generated
vendored
Normal file
19
node_modules/run-applescript/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import execa from 'execa';
|
||||
|
||||
export async function runAppleScriptAsync(script) {
|
||||
if (process.platform !== 'darwin') {
|
||||
throw new Error('macOS only');
|
||||
}
|
||||
|
||||
const {stdout} = await execa('osascript', ['-e', script]);
|
||||
return stdout;
|
||||
}
|
||||
|
||||
export function runAppleScriptSync(script) {
|
||||
if (process.platform !== 'darwin') {
|
||||
throw new Error('macOS only');
|
||||
}
|
||||
|
||||
const {stdout} = execa.sync('osascript', ['-e', script]);
|
||||
return stdout;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue