Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/itunes-node-applescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ var scripts = {
'tell application "iTunes" to get player position',
isRunning:
'get running of application "iTunes"',
state:
'tell application "iTunes" to get player state',
shuffle:
'tell application "iTunes" to set shuffle enabled to true',
unshuffle:
Expand Down Expand Up @@ -422,7 +424,7 @@ exports.track = function(callback){
};

exports.getState = function(callback){
return execScript('state', createJSONResponseHandler(callback, 'state'));
return execScript('state', callback);
};

exports.isRunning = function(callback) {
Expand Down