INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Trying to do some minor automation  (Read 1605 times)

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Trying to do some minor automation
« on: March 01, 2015, 05:20:27 pm »

Hi,

I've written a very simple script that I use to sync my JRiver library with my portable Digital Audio Player (Fiio X1), and it works well.  Except it doesn't know about my playlists.  So I export those manually and then run a little script on them to localize the directory structure so the X1 can understand it.  This isn't hard, but I'm constantly modifying one of the lists.  So I'd like to have my script make a call to Media Center to export one or more lists to the directory I want it in.  Pretty easy requirement.  :)

I've read some documentation and found the MCC commands and tried calling them from the command line via:
 /Applications/Media Center 20.app/Contents/MacOS/Media Center 20 /MCC 10000,0

Just to see if I could do anything, I chose the play/pause command.  It didn't work.  It *did* fire up a second instance of Media Center, but that didn't help me much.

I'm guessing these command line parameters aren't supported on OSX.  Is there something else I can do to meet my goal?

Thanks for reading.

Brian.
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Trying to do some minor automation
« Reply #1 on: March 04, 2015, 10:54:49 am »

Maybe I need to ask a different way:

1.  Is the MCC command feature supported by Media Center 20 for mac?
2.  Is there a programatic way to ask Media Center to export a playlist?

Thanks,

Brian.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: Trying to do some minor automation
« Reply #2 on: March 04, 2015, 10:58:18 am »

Maybe you'd have better luck using the web service?

You can use MCWS/v1/Control/MCC to post/send an MCC.
Logged
Matt Ashland, JRiver Media Center

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Trying to do some minor automation
« Reply #3 on: March 04, 2015, 12:07:01 pm »

Interesting.  I didn't know that existed.  Looks like I can get a list of playlists with one command which will give me a playlist ID.  Then an MCC command to export the list.  Just tried it and got "OK", but I can't locate the exported file.  Hmm.  Plus I'm going to have to munge XML if I go this route.... Well, it might be worth it if I can figure out the export cleanly.  Or a way to query the playlist directly with this interface and munge that output into a file that will work with my DAP.

Thanks for the information.  :)

Brian.
Logged
Pages: [1]   Go Up