thebitguru/play-button-itunes-patch

object file format unrecognized, invalid, or unsuitable

Closed this issue · 14 comments

@bluestarstudios, moving our conversation from #1 here.

I also get the crashing of RCD. Running OSX 10.8.5. Here's an interesting thing I noticed while running v0.8.3 of the patch:

Patching...
 + Killed any running processes.
 + Backed up the existing file as rcd_backup_0.8.3_201404141421.33
 + Patching...
    Successfully patched the file (found 1 instances at 28702).
 + Regenerating the code signature...
/System/Library/CoreServices/rcd.app/Contents/MacOS/rcd: replacing existing signature
/System/Library/CoreServices/rcd.app/Contents/MacOS/rcd: object file format unrecognized, invalid, or unsuitable
 + Successfully patched the existing file.

Thoughts?

Can you please send me the output of the following command? (note the star at the end).

md5 /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd*

Yep! Here it is:

MD5 (/System/Library/CoreServices/rcd.app/Contents/MacOS/rcd) = 5b8a602d18f6d4c110f01880c4749058

Hmm... How about the output from the following command?

defaults read loginwindow SystemVersionStampAsString

Haha. Well it's very exciting:

10.8.5

Any ideas?

Sorry @bluestarstudios, I lost track of this issue. I am assuming you have probably upgraded to a newer version of OS X. Are you all set?

gs11 commented

Same issue here..

MD5 (/System/Library/CoreServices/rcd.app/Contents/MacOS/rcd) = 10c3faa8bbe52a95769bb414f5885fdf

defaults read loginwindow SystemVersionStampAsString:
10.8.5

@gs11 Can you share the output of the following command?

grep -ai itunes /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd

gs11 commented

Sure, it's (messy output):
end telloutput volume of (get volume settings)output muted of (get volume settings)set volume without output mutedtell application id "com.apple.iTunes" to launchcom.apple.iTunescom.apple.iPhotocom.apple.Aperturecom.apple.DVDPlayercom.apple.quicktimeplayercom.apple.QuickTimePlayerXcom.apple.iWork.KeynoteLowBattery2NotificationDateLowBatteryNotificationDatecom.apple.driver.AppleIRController.notificationsystem.preferences.security.remotepaircom.apple.RemotePairToolv16@?0^v8UIDAuthorizationrunRemotePairTool/SourceCache/AppleIR_executables/AppleIR-320.15/Daemon/EventDispatch.creplyType == XPC_TYPE_DICTIONARYcom.apple.driver.AppleIRControllercom.apple.RemoteControl.Paring.Changedplisttell application id "com.apple.iPhoto"
endtell application id "com.apple.iTunes" to get player statetell application id "com.apple.iTunes" to playpausetell application id "com.apple.iTunes"
endtell application id "com.apple.iTunes" to stoptell application id "com.apple.iTunes" to resumetell application id "com.apple.iTunes" to fast forwardtell application id "com.apple.iTunes" to rewindtell application id "com.apple.iTunes" to next tracktell application id "com.apple.iTunes" to back tracktell application id "com.apple.iTunes"
endtell application "com.apple.iTunes"

gs11 commented

I've verified that the patched file only differs from the original as 'tell' is replaced by '--ll'. This in the beginning of 'tell application id "com.apple.iTunes" to launch �com.apple.iTunes'.

I just published a GUI version of the app that has much better detection and logging. Can you please try that? You can download it from http://www.thebitguru.com/projects/iTunesPatch. If you continue to have problems please paste the content of the log file (accessible through the report issue button) in this issue. Thanks!

Great job on this! I tested and it works. However it doesn't work when pressing "Play/Pause" on a bluetooth speaker. That still launches iTunes.

Hmm... what type of speakers do you have? I am guessing that it might have it's own driver or code that's launching iTunes.

It’s actually the BTS-06. It’s a standard bluetooth speaker. No installation or configuration needed.

On Mar 4, 2015, at 3:20 PM, Farhan Ahmad notifications@github.com wrote:

Hmm... what type of speakers do you have? I am guessing that it might have it's own driver or code that's launching iTunes.


Reply to this email directly or view it on GitHub.

hi @bluestarstudios, sorry, unfortunately, I likely won't get much time to work on the bluetooth related functionality.

I have created #29 to track this and I am looking for someone who can take on this work. Thanks!