mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-29 12:22:44 +08:00
runAppleScript bug fix
This commit is contained in:
parent
f698d44ce6
commit
332b9e30be
@ -252,7 +252,7 @@ if (process.platform === 'darwin') {
|
||||
quickcommand.runAppleScript = function (script) {
|
||||
return new Promise((reslove, reject) => {
|
||||
child_process.execFile(
|
||||
'osascript'['-e', script],
|
||||
'osascript', ['-e', script],
|
||||
(err, stdout, stderr) => {
|
||||
if (err) reject(stderr);
|
||||
else reslove(stdout);
|
||||
|
Loading…
x
Reference in New Issue
Block a user