Page 1 of 1

Command for mp3 users

Posted: 04 Nov 2009 16:00
by aurumdigitus
Since choosing a number of mp3's is so easily done using Sticky Selection how about augmenting that with a command that would create a m3u from those files?

Re: Command for mp3 users

Posted: 04 Nov 2009 16:24
by calude
aurumdigitus wrote:Since choosing a number of mp3's is so easily done using Sticky Selection how about augmenting that with a command that would create a m3u from those files?
if you open a mu3 in notepad you'll see that it is a simple list of path

probably an easy task for a script (for those who know)

Calude

I would use such a script also

Re: Command for mp3 users

Posted: 04 Nov 2009 16:30
by j_c_hallgren
Agree that this would be much better suited for a script as it's getting into the area of file editing vs file mgmt to me.

Re: Command for mp3 users

Posted: 04 Nov 2009 16:48
by aurumdigitus
A script would be fine! Would one of the xy cognoscenti care to come forward and provide one? :)

Re: Command for mp3 users

Posted: 04 Nov 2009 16:53
by serendipity
Yep, I use it too:

Code: Select all

/*
Write (Writefile) m3u file based on current selection (getinfo("SelectedItemsNames")). 
<curfolder>=m3u filename is name of the folder. 
o= Older m3u file with same name is overwritten.
*/
  Writefile ("<curfolder>.m3u", getinfo("SelectedItemsNames"), o);
Update: If you want to have your M3Us in a folder other than the source of MP3s then we have to use the entire path of the mp3s. In that case use this:

Code: Select all

//For storing m3us other than the source of mp3s
  Writefile ("<curfolder>.m3u", getinfo("SelectedItemsPathNames"), o);
You can then copy the m3u file anywhere and it will still work. The downside is if you copy your source files to some other place or have it on USB where drive letters will change then the second script wont work.

Re: Command for mp3 users

Posted: 04 Nov 2009 17:25
by aurumdigitus
Serendipity, thank you for sharing your efforts with those of us who may be "script impaired". ctb11 will now be the emissary of your labor. 8)

Re: Command for mp3 users

Posted: 04 Nov 2009 17:31
by j_c_hallgren
serendipity, might you create a thread in 'Script Exchange' for this as well? So that it can be found easier in the future...thanks!

Re: Command for mp3 users

Posted: 04 Nov 2009 17:47
by zer0
j_c_hallgren wrote:serendipity, might you create a thread in 'Script Exchange' for this as well? So that it can be found easier in the future...thanks!
Perhaps we should go a step further and consolidate all sources of scripts (Script Exchange forum, XYplorer Help file, Wiki, users' own collections) in one place with proper documentation, tags that would make it easier to search and upload capabilities so ZIPs and screenshots could be uploaded. In particular, this could be especially useful for CTB lovers out there, where a complete package (code, any other supporting files and an icon file) could be posted for public benefit.

Re: Command for mp3 users

Posted: 04 Nov 2009 18:07
by j_c_hallgren
zer0 wrote:Perhaps we should go a step further and consolidate all sources of scripts (Script Exchange forum, XYplorer Help file, Wiki, users' own collections) in one place with proper documentation, tags that would make it easier to search and upload capabilities so ZIPs and screenshots could be uploaded.
That's the ideal but I certainly don't have the time/ability to do it and kinda doubt anyone else does either so the best I can hope for at this point is to extract any embedded scripts (even small ones like this) from Wish/TTQA threads into the Script Exchange sub-forum at least...

The wiki would be another place to place them but not everyone is comfortable with editing that, so it might be an auxiliary location.

Re: Command for mp3 users

Posted: 04 Nov 2009 18:24
by Pagat
zer0 wrote:Perhaps we should go a step further and consolidate all sources of scripts (Script Exchange forum, XYplorer Help file, Wiki, users' own collections) in one place with proper documentation, tags that would make it easier to search and upload capabilities so ZIPs and screenshots could be uploaded.
Thanks to jacky there is already such a place: http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=3356

Maybe not with all the features you mentioned but it's a start.

Re: Command for mp3 users

Posted: 04 Nov 2009 18:26
by serendipity
Pagat wrote:
zer0 wrote:Perhaps we should go a step further and consolidate all sources of scripts (Script Exchange forum, XYplorer Help file, Wiki, users' own collections) in one place with proper documentation, tags that would make it easier to search and upload capabilities so ZIPs and screenshots could be uploaded.
Thanks to jacky there is already such a place: http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=3356

Maybe not with all the features you mentioned but it's a start.
Yep, thats true. Here it is:

http://88.191.26.34/XYscripts/

Re: Command for mp3 users

Posted: 04 Nov 2009 23:20
by Lare2
serendipity wrote:
Pagat wrote:
zer0 wrote:Perhaps we should go a step further and consolidate all sources of scripts (Script Exchange forum, XYplorer Help file, Wiki, users' own collections) in one place with proper documentation, tags that would make it easier to search and upload capabilities so ZIPs and screenshots could be uploaded.
Thanks to jacky there is already such a place: http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=3356

Maybe not with all the features you mentioned but it's a start.
Yep, thats true. Here it is:

http://88.191.26.34/XYscripts/
Now that's useful. Thanks