Help - Search - Members - Calendar
Full Version: command line: switch to {specified} playlist
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
DanDanRevolution
Hi there. There are a few threads about command line options on foobar, but nobody seems to want to change to a specific playlist. Is it possible?

I want to command line to my "Favorites" playlist (which is generated by autoplaylist). (The question is motivated by setting up a favorites-playing 8:00am alarm clock. Everything is in place, except for actually choosing this playlist.)

The closest I can get to it is using "/command:Next Playlist", but that isn't good enough. The issue with that is if I wasn't on the right playlist when foobar closes, I get a different playlist. This wouldn't be a big deal except that on some playlists there could be files from other hard drives, which could be off - so the alarm clock wouldn't play anything! I can be sure that if it played from "Favorites" it would be perfect, but with "/command:Next Playlist" I run the risk of not being woken up when I need to be. (I could set a second alarm, but I'd really want this to one to be enough.)

I'm pretty sure there's no way to do it. Here's a list of possibilities (that seems outdated?). So, if it's not - could someone write a really quick plugin that simply has a menu item called "Switch To Playlist" that takes one argument that has to be the exact name of the playlist to switch to? Thanks.
DanDanRevolution
Is anyone out there? (I'm willing to hand someone a few bucks to code up a quick component that adds just one simple command: "Switch to Favorites playlist"... anyone? please?)
Cosmo
Don't know if you can open a playlist as you'd like to, but you can load a playlist file -

/command:load playlist: "C:\whatever\favorites.fpl" ...or...
/command:load playlist: "C:\Program Files\foobar2000\playlists\0000000N.fpl" <- use index # of your faves list

It will open in the last playlist that was current, unless you have "Preferences > General > Always send to playlist:" specified

"Enqueue incoming files by default..." must be unchecked, to play automatically.

It throws up an error message or two, but then goes on to play. Don't know if that can be fixed.
DanDanRevolution
Cosmo, I appreciate the reply, but my favorites list is generated by the autoplaylist component. Is that generated playlist output to a file somewhere on my machine? (I don't have an .fpl file for it, at least not that I'm aware.)

If not, I don't think I can use your method - right?
kjoonlee
I think it works.

In my case I have 16 playlists. 3 of them have been generated by the autoplaylist component.

I have 16 .fpl files in my C:\Program Files\foobar2000\playlists directory, and double-clicking 00000001.fpl (the first playlist, which happens to be an autoplaylist) works as intended.

I have "Always send to playlist:" checked and set to "From commandline".
Cosmo
As kjoonlee has shown, you will find that one of the playlists in the playlists directory will be your autoplaylist. I imagine that the number should remain rather static if you don't shake things up too much.
lordgibbness
If I'm understanding this properly it is actually very simple.

Go to Control Panel and open Scheduled Tasks. Now just drag one of those .fpl (fb playlist) files into the scheduled tasks window. It will then be set as a scheduled task.

Set a time and date etc. and your all done.

I used to do just what you are trying to do with Winamp and m3u playlists years back.

Good luck.
DanDanRevolution
QUOTE(kjoonlee @ Jul 11 2006, 22:55) *

I think it works.

In my case I have 16 playlists. 3 of them have been generated by the autoplaylist component.

I have 16 .fpl files in my C:\Program Files\foobar2000\playlists directory, and double-clicking 00000001.fpl (the first playlist, which happens to be an autoplaylist) works as intended.

I have "Always send to playlist:" checked and set to "From commandline".



Maybe I'm missing something, but my C:\Program Files\foobar2000 folder does not have a playlists directory! :-/ (I have two playlists up "Default" and "Favorites", and I'm using foobar2000 v0.9.2)
lordgibbness
You must have the option set for multi-user settings, which means that they'll be in "Docs & Settings/User/Application Data/foobar2000" instead.

I prefer this turned off so that everything is contained in the foobar2000 folder. If you do turn it off in the options then you can just copy the contents back into the other foobar folder and delete this one.
DanDanRevolution
lordgibbness - thank you! yep, multi-user setting.

thank you Cosmo and kjoonlee - your advice works perfectly.

now I just need you three to port foobar over to osx so I can finally buy a mac! biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.