thebitguru / play-button-itunes-patch

Play Button iTunes Patch
http://www.thebitguru.com/projects/iTunesPatch
Other
644 stars 19 forks source link

object file format unrecognized, invalid, or unsuitable #6

Closed thebitguru closed 8 years ago

thebitguru commented 10 years ago

@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*

bluestarstudios commented 10 years ago

Yep! Here it is:

MD5 (/System/Library/CoreServices/rcd.app/Contents/MacOS/rcd) = 5b8a602d18f6d4c110f01880c4749058
thebitguru commented 10 years ago

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

defaults read loginwindow SystemVersionStampAsString
bluestarstudios commented 10 years ago

Haha. Well it's very exciting:

10.8.5
bluestarstudios commented 10 years ago

Any ideas?

thebitguru commented 10 years ago

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 10 years ago

Same issue here..

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

defaults read loginwindow SystemVersionStampAsString: 10.8.5

thebitguru commented 10 years ago

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

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

gs11 commented 10 years ago

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 10 years ago

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'.

thebitguru commented 9 years ago

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!

bluestarstudios commented 9 years ago

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.

thebitguru commented 9 years ago

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.

bluestarstudios commented 9 years ago

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.

thebitguru commented 8 years ago

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!