You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when connecting to itunes, it can connect to the com object, but fails when getting track information.
I've tried this on a couple of versions of node.
the error is
OLE error: [Item] -2147352570 [Item] IDispatch::GetIDsOfNames AutoWrap() failed
var win32ole = require('win32ole');
var iTunesApp = win32ole.client.Dispatch('iTunes.Application');
var tracks = iTunesApp.LibraryPlaylist.Tracks;
var numTracks = tracks.Count;
console.log('iTunes connected with '+numTracks+' tracks'); /* ********** this log works fine ********** /
// looping songs ///////
while (numTracks != 0)
{
var currTrack = tracks.Item(numTracks); / ************* this fails here ******************** */
console.log(currTrack.Name);
numTracks--;
}
The text was updated successfully, but these errors were encountered:
when connecting to itunes, it can connect to the com object, but fails when getting track information.
I've tried this on a couple of versions of node.
the error is
OLE error: [Item] -2147352570 [Item] IDispatch::GetIDsOfNames AutoWrap() failed
var win32ole = require('win32ole');
var iTunesApp = win32ole.client.Dispatch('iTunes.Application');
var tracks = iTunesApp.LibraryPlaylist.Tracks;
var numTracks = tracks.Count;
console.log('iTunes connected with '+numTracks+' tracks'); /* ********** this log works fine ********** /
// looping songs ///////
while (numTracks != 0)
{
var currTrack = tracks.Item(numTracks); / ************* this fails here ******************** */
console.log(currTrack.Name);
numTracks--;
}
The text was updated successfully, but these errors were encountered: