runAppleScript bug fix

This commit is contained in:
fofolee 2024-02-24 12:33:47 +08:00
parent f698d44ce6
commit 332b9e30be

View File

@ -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);