Git Product home page Git Product logo

Comments (7)

ProfessorTom avatar ProfessorTom commented on May 31, 2024

@runrunrirun Do you have a preference for what the new "command" should be, i.e. should it stay /iTunes? Convert to /Music? Should both work regardless?

from colloquy.

ProfessorTom avatar ProfessorTom commented on May 31, 2024

@runrunrirun Also, out of curiosity, would you want to be able to do /TV and have whatever is playing in the TV app appear in the chat? What about /Podcast?

from colloquy.

zadr avatar zadr commented on May 31, 2024

We can make an alias so both /iTunes and /music can live alongside one another, yeah?

A suite of similar commands for other media apps would also be nifty

from colloquy.

ProfessorTom avatar ProfessorTom commented on May 31, 2024

@zadr That was my thought.

I'm guessing–but it's only a guess, that the messaging that used to work for iTunes will also work for Music, TV and Podcast, and that the two additional endpoints would need to be added and message the appropriate app. But I'm not intimately familiar with this codebase.

from colloquy.

zadr avatar zadr commented on May 31, 2024

iTunes support comes through macOS's AppleScript bridge, you can check the script out here: https://github.com/colloquy/colloquy/blob/main/Mac-Old/Mac-Old/Plug-Ins/iTunes/iTunes.scpt

The AppleScript dictionary for the Music and TV apps likely vary somewhat even if they both appear to have current track properties.

Music and iTunes share the same dictionary, so changing the app name we query (or rather, dynamically knowing which to use) is likely enough to get things working on, like @runrunrirun was suggesting!

Podcasts doesn't appear to have an AppleScript Dictionary that we can query, so this extension unlikely right now.

from colloquy.

runrunrirun avatar runrunrirun commented on May 31, 2024

Perhaps a bit redundant, but probably both /iTunes and /Music should work for backward compatibility. As far as /TV goes, I personally don't have a need there, but if it was easy that would be a logical addition.

I've actually kind of wanted a /nowplaying for whatever audio app is playing, but I assume that things like Spotify don't have scripting support.

from colloquy.

runrunrirun avatar runrunrirun commented on May 31, 2024

So I was going to take a crack at modifying the iTunes script for Catalina, but the app seems to be completely unable to send to System Events. I think the dev build I have needs to be rebuilt with the Apple Events capability added to the Hardened Runtime (?) Unfortunately it appears that building Colloquy requires a full Apple Developer account to build for Catalina. Any chance someone could cut a version of the existing dev build with Apple Events turned on?

from colloquy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.