+- (BOOL)switchToTrackAtIndex:(int)index
+{
+ [[ITAppleEventCenter sharedCenter] sendAEWithSendString:[NSString stringWithFormat:@"'----':obj { form:'indx', want:type('cTrk'), seld:long(%lu), from:obj { form:'prop', want:type('prop'), seld:type('pPla'), from:() } }",index] eventClass:@"hook" eventID:@"Play" appPSN:savedPSN];
+ return YES;
+}
+
+//What do this?
+- (int)indexForTrack:(int)identifier inPlaylist:(int)playlistIndex
+{
+ return 0;
+}
+
+//What do this?
+- (int)identifierForTrackAtIndex:(int)index inPlaylist:(int)playlistIndex
+{
+ return 0;
+}
+
+- (BOOL)supportsTrackProperty:(ITMTRemoteTrackProperty)property
+{
+ switch (property)
+ {
+ case ITMTRemoteTrackName:
+ case ITMTRemoteTrackArtist:
+ case ITMTRemoteTrackAlbum:
+ case ITMTRemoteTrackComposer:
+ case ITMTRemoteTrackNumber:
+ case ITMTRemoteTrackTotal:
+ case ITMTRemoteTrackComment:
+ case ITMTRemoteTrackGenre:
+ case ITMTRemoteTrackYear:
+ case ITMTRemoteTrackRating:
+ case ITMTRemoteTrackArt:
+ return YES;
+ break;
+ default:
+ return NO;
+ break;
+ }
+}
+
+//Somebody else do this
+- (id)trackProperty:(ITMTRemoteTrackProperty)property atIndex:(int)index
+{
+ switch (property)
+ {
+ case ITMTRemoteTrackName:
+ break;
+ case ITMTRemoteTrackArtist:
+ break;
+ case ITMTRemoteTrackAlbum:
+ break;
+ case ITMTRemoteTrackComposer:
+ break;
+ case ITMTRemoteTrackNumber:
+ break;
+ case ITMTRemoteTrackTotal:
+ break;
+ case ITMTRemoteTrackComment:
+ break;
+ case ITMTRemoteTrackGenre:
+ break;
+ case ITMTRemoteTrackYear:
+ break;
+ case ITMTRemoteTrackRating:
+ break;
+ case ITMTRemoteTrackArt:
+ break;
+ }
+ return nil;
+}
+
+//Somebody else do this
+- (BOOL)setTrackProperty:(ITMTRemoteTrackProperty)property toValue:(id)value atIndex:(int)index
+{
+ switch (property)
+ {
+ case ITMTRemoteTrackName:
+ break;
+ case ITMTRemoteTrackArtist:
+ break;
+ case ITMTRemoteTrackAlbum:
+ break;
+ case ITMTRemoteTrackComposer:
+ break;
+ case ITMTRemoteTrackNumber:
+ break;
+ case ITMTRemoteTrackTotal:
+ break;
+ case ITMTRemoteTrackComment:
+ break;
+ case ITMTRemoteTrackGenre:
+ break;
+ case ITMTRemoteTrackYear:
+ break;
+ case ITMTRemoteTrackRating:
+ break;
+ case ITMTRemoteTrackArt:
+ break;
+ }
+ return NO;
+}
+
+- (BOOL)supportsShuffle
+{
+ return YES;
+}
+
+//This doesn't work
+- (BOOL)setShuffle:(BOOL)toggle
+{
+ [[ITAppleEventCenter sharedCenter] sendAEWithSendString:[NSString stringWithFormat:@"data:long(%lu) ----:obj { form:'prop', want:type('prop'), seld:type('pShf'), from:obj { form:'prop', want:type('prop'), seld:type('pPla'), from:'null'() } }",(unsigned long)toggle] eventClass:@"core" eventID:@"setd" appPSN:savedPSN];
+ return YES;
+}
+
+- (BOOL)shuffle