Applescript-support, current playing, tracklist (MACOSX)

Bug #1414575 reported by holber
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
New
Wishlist
Unassigned

Bug Description

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

Revision history for this message
Daniel Schürmann (daschuer) 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?

Revision history for this message
holber (mikael-holber) wrote : Re: [Bug 1414575] Re: Applescript-support, current playing, tracklist (MACOSX)

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
>

Revision history for this message
Daniel Schürmann (daschuer) 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

Revision history for this message
holber (mikael-holber) wrote :

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
>

Owen Williams (ywwg)
Changed in mixxx:
importance: Undecided → Wishlist
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/7832

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.