Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Integration of Rdio Desktop application play/pause (like iTunes) #65

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
2 participants

Here is some changes I made to allow the Rdio (http://www.rdio.com/) Desktop application to pause during call(s) and to resume when call(s) finished (just like it is done with iTunes). Its enabled with the same general preferences checkbox than iTunes.

And what a great App you made by the way!!!

Pierre-David Bélanger

Owner

eofster commented Nov 4, 2013

I would like to add scripting support for Rdio, but the new release of Telephone will be sandboxed, and sending of Apple Events is restricted. In order to to that, one must add an entry into the entitlements file. The key is com.apple.security.scripting-targets. For example, the value for the iTunes is a dictionary where com.apple.iTunes is key and and array with a string com.apple.iTunes.playback is a value. Do you know the value for Rdio? The value is an access group for controlling playback.

Hi @eofster

First, as much as I would like to see this feature in the official release (I use Telephone and Rdio a lot!), I dont think you should spend too much time on this one if it not an easy change (I guess it is not), as there is probably not many people for this use case of Telephone.

This "scripting access groups" thing is new to me, so I do not understand fully what we need to do in order to make it work for Rdio.

If understand correctly the documentation here:

https://developer.apple.com/library/mac/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/EnablingAppSandbox.html#//apple_ref/doc/uid/TP40011195-CH4-SW25

The target scriptable app that Telephone want to access (iTunes, Rdio) must provide scripting access groups, and as far as I know Rdio does not.

But, if you want to try anyway, there is something called "Apple Event Temporary Exception":

https://developer.apple.com/library/mac/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/AppSandboxTemporaryExceptionEntitlements.html#//apple_ref/doc/uid/TP40011195-CH5-SW3

The entitlement key is named: com.apple.security.temporary-exception.apple-events

Rdio CFBundleIdentifier is: com.rdio.desktop

Just let me know if you give it a try and give me the branch name, I will gladly test it.

Owner

eofster commented Nov 5, 2013

You understand it right, the target application should provide scripting access groups. I haven’t invested much time in this yet, but so far I don’t know how to see the list of groups to tell, if application support them at all. The group name for the iTunes I took from WWDC 2012 slides, and it worked.

Owner

eofster commented Nov 5, 2013

I wouldn’t want to use a temporary exception entitlement unless it is really the only way. I’d like to find the way to get the list of the groups for the application. And maybe even contact Rdio to add this.

@eofster eofster removed this from the 1.1 milestone Sep 14, 2015

Owner

eofster commented Mar 25, 2016

Closing because Rdio has been discontinued.

@eofster eofster closed this Mar 25, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment