Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iTunes on Windows fails AutoWrap() #18

Open
johnpaulvaughan opened this issue Feb 9, 2015 · 1 comment
Open

iTunes on Windows fails AutoWrap() #18

johnpaulvaughan opened this issue Feb 9, 2015 · 1 comment

Comments

@johnpaulvaughan
Copy link

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--;
}

@Schweinepriester
Copy link

push

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants