SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

rename using underscores

When renaming files, is there a way to replace all spaces with underscores?

Thanks
Dave

Yes, using Javascripts replace function.

i.e to change all spaces in the title field to underscores you could use

title.replace(’ ‘,’_’,“g”)

The g mean globally replace rather than just replace the first occurrence of space.

Ah, javascript. Very nice, allows for lots of customization. Thanks for the tip.