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

Applescript-support, current playing, tracklist (MACOSX) #7832

Open
mixxxbot opened this issue Aug 22, 2022 · 4 comments
Open

Applescript-support, current playing, tracklist (MACOSX) #7832

mixxxbot opened this issue Aug 22, 2022 · 4 comments
Labels

Comments

@mixxxbot
Copy link
Collaborator

Reported by: mikael-holber
Date: 2015-01-26T08:59:36Z
Status: New
Importance: Wishlist
Launchpad Issue: lp1414575


I want to propose to include support for Applescript. This would allow other applications and scripts to interface and read current information from MIXXX. A simple python script would be able to read current playing from MIXXX as below is demonstrated with iTunes.

--- Itunes getting artist and title for track 4 through 10 ---
#!/usr/bin/env osascript

set the artistlist to {}
set the titlelist to {}
set startvalue to 4
set stopvalue to 10
tell application "iTunes"
    repeat with trackx from startvalue to stopvalue
        set the end of the artistlist to artist of track trackx of current playlist
        set the end of the titlelist to name of track trackx of current playlist
    end repeat
end tell
return {artistlist, titlelist}
----------------

Kind regards
Mikael Holber - Sweden

@mixxxbot
Copy link
Collaborator Author

Commented by: daschuer
Date: 2015-01-26T11:31:07Z


I am not an Apple expert, but I am afraid the bug title is misleading.
I think you want an IPC interface, that is accessible by Applescript.

Something like DBus for Apple.
I have just found this:
http://stackoverflow.com/questions/2723936/is-there-an-equivalent-to-dbus-on-osx
http://stackoverflow.com/questions/2797703/itunes-apple-events-api

Who knows the name for the interface iTunes provides? Is it "Apple Events"?
Does Qt support it?

@mixxxbot
Copy link
Collaborator Author

Commented by: mikael-holber
Date: 2015-01-26T11:57:08Z


Hi,

I will do some research about AppleScript in QT. All I have found so far is
http://www.macosxautomation.com/applescript/develop/

Also, I was about to file an item to the wishlist for win32com-support for
Mixxx, same specifications as for AppleScript and DBUS. All these languages
work the same but have different dynamics and syntax (of course). I think
it would be very convenient to implement them at the same time.

My project is located here: www.beam-project.com if you wish to see how we
use the information. I'm a Tango DJ and we use very simple software
usually, however, I know that Mixxx is very popular and would love to be
able to support it with my software as well.

Cheers
Mikael

On Mon, Jan 26, 2015 at 12:31 PM, Daniel Schürmann <
<email address hidden>> wrote:

I am not an Apple expert, but I am afraid the bug title is misleading.
I think you want an IPC interface, that is accessible by Applescript.

Something like DBus for Apple.
I have just found this:

http://stackoverflow.com/questions/2723936/is-there-an-equivalent-to-dbus-on-osx
http://stackoverflow.com/questions/2797703/itunes-apple-events-api

Who knows the name for the interface iTunes provides? Is it "Apple Events"?
Does Qt support it?

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1414575

Title:
Applescript-support, current playing, tracklist (MACOSX)

To manage notifications about this bug go to:
https://bugs.launchpad.net/mixxx/+bug/1414575/+subscriptions

@mixxxbot
Copy link
Collaborator Author

Commented by: daschuer
Date: 2015-01-26T12:40:20Z


www.beam-project.com .. cool project!
It would be really nice I this interfaces nicely with Mixxx.
I think had actually a requests for a feature like that, but I cannot find now.

Do you plan to show lyrics?
https://bugs.launchpad.net/mixxx/+bug/882359

@mixxxbot
Copy link
Collaborator Author

Commented by: mikael-holber
Date: 2015-01-26T13:25:54Z


We have put it on the roadmap for the future. However we have problems with
saving the lyrics in a good format which work together with the songs. The
solution would be to use "subtitle"-standard. We do need a lot of hands-on
work for this.

I think that including something like this according to a good standard is
very easy for us.

On Mon, Jan 26, 2015 at 1:40 PM, Daniel Schürmann <
<email address hidden>> wrote:

www.beam-project.com .. cool project!
It would be really nice I this interfaces nicely with Mixxx.
I think had actually a requests for a feature like that, but I cannot find
now.

Do you plan to show lyrics?
https://bugs.launchpad.net/mixxx/+bug/882359

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1414575

Title:
Applescript-support, current playing, tracklist (MACOSX)

To manage notifications about this bug go to:
https://bugs.launchpad.net/mixxx/+bug/1414575/+subscriptions

@mixxxbot mixxxbot transferred this issue from another repository Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant