git.ithinksw.org
/
MenuTunes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moof
[MenuTunes.git]
/
iTunesRemote.m
diff --git
a/iTunesRemote.m
b/iTunesRemote.m
index
c0a16a5
..
4d19980
100755
(executable)
--- a/
iTunesRemote.m
+++ b/
iTunesRemote.m
@@
-72,13
+72,13
@@
- (BOOL)showPrimaryInterface
{
// Make this into AppleEvents... shouldn't be too hard, I'm just too tired to do it right now.
- (BOOL)showPrimaryInterface
{
// Make this into AppleEvents... shouldn't be too hard, I'm just too tired to do it right now.
- //tell application "iTunes"
- //
set frontmost to true
+ [[ITAppleEventCenter sharedCenter] sendAEWithSendString:@"data:long(1), '----':obj { form:'prop', want:type('prop'), seld:type('pisf'), from:'null'() }" eventClass:@"core" eventID:@"setd" appPSN:iTunesPSN];
+ //
Still have to convert these to AEs:
// set visible of browser window 1 to true
// set visible of browser window 1 to true
+ [[ITAppleEventCenter sharedCenter] sendAEWithSendString:@"data:true($$), ----:obj { form:'prop', want:'prop', seld:'pvis', from:obj { form:'indx', want:'cBrW', seld:1, from:'null'() } }" eventClass:@"core" eventID:@"setd" appPSN:iTunesPSN];
// set minimized of browser window 1 to false
// set minimized of browser window 1 to false
- // set view of browser window 1 to (playlist (index of current playlist))
- //end tell
- //Someone do this plz kthx
+ [[ITAppleEventCenter sharedCenter] sendAEWithSendString:@"data:fals($$), ----:obj { form:'prop', want:'prop', seld:'pMin', from:obj { form:'indx', want:'cBrW', seld:1, from:'null'() } }" eventClass:@"core" eventID:@"setd" appPSN:iTunesPSN];
+
return NO;
}
return NO;
}
@@
-168,7
+168,7
@@
- (NSString *)currentSongUniqueIdentifier
{
- (NSString *)currentSongUniqueIdentifier
{
- return
@"BBQ"
;
+ return
[NSString stringWithFormat:@"%i-%i", [self currentPlaylistIndex], [[ITAppleEventCenter sharedCenter] sendTwoTierAEWithRequestedKeyForNumber:@"pDID" fromObjectByKey:@"pTrk" eventClass:@"core" eventID:@"getd" appPSN:iTunesPSN]]
;
}
- (int)currentSongIndex
}
- (int)currentSongIndex
@@
-225,8
+225,9
@@
- (BOOL)equalizerEnabled
{
- (BOOL)equalizerEnabled
{
- return [[ITAppleEventCenter sharedCenter]
- sendAEWithRequestedKeyForNumber:@"pEQ " eventClass:@"core" eventID:@"getd" appPSN:iTunesPSN];
+ int thingy = [[ITAppleEventCenter sharedCenter] sendAEWithSendStringForNumber:@"'----':obj { form:type('prop'), want:type('prop'), seld:type('pEQ '), from:() }" eventClass:@"core" eventID:@"getd" appPSN:iTunesPSN];
+ NSLog(@"Debug equalizerEnabled: %i", thingy);
+ return thingy;
}
- (BOOL)setEqualizerEnabled:(BOOL)enabled
}
- (BOOL)setEqualizerEnabled:(BOOL)enabled