Comments (7)
@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.
@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.
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.
@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.
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.
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.
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)
- Chat does not scroll down automatically on Catalina HOT 22
- Colloquy not scrolling posts HOT 1
- Doesn't scroll to bottom when new messages arrive on catalina HOT 1
- Colloquy website has gone away HOT 2
- Previous session / log not seen on Catalina
- Does not autoscroll HOT 1
- Loss of lock-to-bottom function with OS Maverick update HOT 1
- Mac update url 404ing HOT 2
- iOS: lack of SNI and TLS 1.3 support
- colloquy.info SSL cert invalid HOT 1
- No option to enable SSL when editing a network, Works fine when adding a new one
- Put releases in Github so Homebrew cask can be used to install HOT 3
- Add support for matrix.to
- Mac App Store release or pre-built binaries HOT 1
- SASL / libera.chat Incompatibility HOT 3
- Can't clone this.
- Build fails with "Module 'CocoaAsyncSocket' not found"
- dark mode
- Is this project dead? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colloquy.