Passing variables as noted at the bottom of the ReadMe doesn't seem to work but I'm not sure if I'm doing it wrong.
This is my code.
applescript.execFile( 'AppleScripts/setvolume.scpt', ['set spotVolume to 10'], function(err, data, body) {
console.log(data);
console.log(data);
console.log(body);
});
And I get back
osascript: set spotVolume to 10: No such file or directory
Am I doing this right?
Passing variables as noted at the bottom of the ReadMe doesn't seem to work but I'm not sure if I'm doing it wrong.
This is my code.
And I get back
osascript: set spotVolume to 10: No such file or directoryAm I doing this right?