Command for mp3 users

Features wanted...
Post Reply
aurumdigitus
Posts: 1045
Joined: 30 May 2008 21:02
Location: Lake Erie

Command for mp3 users

Post by aurumdigitus » 04 Nov 2009 16:00

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?

calude
Posts: 336
Joined: 13 Aug 2008 10:16
Location: Switzerland
Contact:

Re: Command for mp3 users

Post by calude » 04 Nov 2009 16:24

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

j_c_hallgren
XY Blog Master
Posts: 5824
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Command for mp3 users

Post by j_c_hallgren » 04 Nov 2009 16:30

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.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

aurumdigitus
Posts: 1045
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Command for mp3 users

Post by aurumdigitus » 04 Nov 2009 16:48

A script would be fine! Would one of the xy cognoscenti care to come forward and provide one? :)

serendipity
Posts: 3355
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Command for mp3 users

Post by serendipity » 04 Nov 2009 16:53

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.

aurumdigitus
Posts: 1045
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Command for mp3 users

Post by aurumdigitus » 04 Nov 2009 17:25

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)

j_c_hallgren
XY Blog Master
Posts: 5824
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Command for mp3 users

Post by j_c_hallgren » 04 Nov 2009 17:31

serendipity, might you create a thread in 'Script Exchange' for this as well? So that it can be found easier in the future...thanks!
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

zer0
Posts: 2673
Joined: 19 Jan 2009 20:11

Re: Command for mp3 users

Post by zer0 » 04 Nov 2009 17:47

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.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

j_c_hallgren
XY Blog Master
Posts: 5824
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Command for mp3 users

Post by j_c_hallgren » 04 Nov 2009 18:07

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.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

Pagat
Posts: 306
Joined: 09 Oct 2007 21:23
Location: Austria

Re: Command for mp3 users

Post by Pagat » 04 Nov 2009 18:24

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.

serendipity
Posts: 3355
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Command for mp3 users

Post by serendipity » 04 Nov 2009 18:26

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/

Lare2
Posts: 65
Joined: 18 Sep 2006 08:29

Re: Command for mp3 users

Post by Lare2 » 04 Nov 2009 23:20

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

Post Reply