X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/93a60b6d98f84d592631266e1ee0caabe3642551..6f3e95b38759c72706e83ff140ae17667cdfad22:/iTunesRemote.m diff --git a/iTunesRemote.m b/iTunesRemote.m index c537975..b5365b2 100755 --- a/iTunesRemote.m +++ b/iTunesRemote.m @@ -525,6 +525,15 @@ return ( ([temp1 length]) ? temp1 : nil ) ; } +- (BOOL)songEnabledAtIndex:(int)index +{ + BOOL temp1; + ITDebugLog(@"Getting song enabled at index %i.", index); + temp1 = [ITSendAEWithString([NSString stringWithFormat:@"'----':obj { form:'prop', want:type('prop'), seld:type('enbl'), from:obj { form:'indx', want:type('cTrk'), seld:long(%lu), from:obj { form:'prop', want:type('prop'), seld:type('pPla'), from:'null'() } } }", index], 'core', 'getd', &savedPSN) booleanValue]; + ITDebugLog(@"Getting song enabled at index %i done.", index); + return temp1; +} + - (int)currentAlbumTrackCount { int temp1;