Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Airplay and ITunes #3

Open
jer78 opened this issue Dec 27, 2015 · 1 comment
Open

Airplay and ITunes #3

jer78 opened this issue Dec 27, 2015 · 1 comment

Comments

@jer78
Copy link

jer78 commented Dec 27, 2015

I'm trying to use this to start playing iTunes on my Mac and toggle AirPlay devices. I've got it partially running but I encounter the error message: Error: Error: 74:89: execution error: No result was returned from some part of this expression. (-2763)

The apple script I'm running is this:

"accessories": [
{
"accessory": "Applescript",
"name": "iTunes",
"on": "tell application ''iTunes'' to set selected of AirPlay device ''Computer'' to true and (play)",
"off": "tell application ''iTunes'' to set selected of AirPlay device ''Computer'' to false and (pause)"
}
],

Is there a better way to switch AirPlay devices? Thanks

@bradleyrawleigh
Copy link

I don't have a direct link. But there is some additional script available for iTunes controls and AirPlay. I can later add the scripts I've edited and written for control of my iTunes through HomeKit and homebridge. If that might help? Sorry this was posted awhile ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants