Skip to content

Airplay and ITunes #3

@jer78

Description

@jer78

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions