I am a foobar2000 user, and I wanted a solution for such a task once upon a time, and I solved it like this. . .
- Add a third-party component to fb2k named "Text Tools" (foo_texttools).
Text Tools allows you to copy formatted text info to the clipboard from the context menu in the fb2k Playlist Viewer.
- Create a title-formatting pattern for Text Tools (fb2k preferences -> Tools -> Text Tools)
Try this title-formatting pattern:$if($and(%discnumber%,%tracknumber%),%discnumber%'.'%tracknumber%'.',$if(%discnumber%,%discnumber%'.##.',[%tracknumber%'.']))' '$if2($meta(title),%filename%)' '$if(%_length%,$iflonger(%length%,5,$left('00:00:00',$sub(8,$len(%length%)))%length%,$right('00:00:00',$sub(5,$len(%length%)))%length%),)
Select tracks in your playlist viewer,
Right-click context menu -> Utilities -> Text Tools
Example output of 6 tracks selected in the playlist viewer,
and choosing the above title-formatting pattern from the Text Tools context menu
and pasting into a text file...01. Fun 07:44
02. Games 08:02
03. Mercy, Mercy, Mercy 05:11
04. Sticks 03:59
05. Hippodelphia 05:51
06. Sack O' Woe 10:34