itunes-bridge
Version:
A macOS and Windows NodeJS package to control and get informations from iTunes and macOS Music app through AppleScript
21 lines (19 loc) • 392 B
JavaScript
var iTunesApp = WScript.CreateObject("iTunes.Application");
switch(WScript.arguments(0)){
case "play":{
iTunesApp.play();
break;
}
case "pause":{
iTunesApp.pause();
break;
}
case "stop":{
iTunesApp.stop();
break;
}
case "setSoundVolume":{
iTunesApp.SoundVolume(WScript.arguments(1));
break;
}
}