Hey all,
I have noticed that I have a fair amount of song where the title starts with a blank.
I was woundering if you have a nice little script that delites the first blank letter in the title ???
Cheers,
//Peter
Remove Initial Blanks in the Title
This will remove all leading and trailing spaces from the titles of the currently selected songs
Depending on how many songs you run it, it will take some time
here it is
Hope this helps
Depending on how many songs you run it, it will take some time
here it is
Code: Select all
'==========================================================================
' Save this file as removeBlanks.vbs in your scripts folder.
' Add the following lines to scripts.ini (without the ')
'
'[RemoveBlanks]
'FileName=RemoveBlanks.vbs
'ProcName=RemoveBlanks
'DisplayName=Remove Blanks from Title
'Order=1
'Language=VBScript
'ScriptType=0
'
'==========================================================================
Sub RemoveBlanks
' Define variables
Dim list, itm, i, OriginalTitle, NewTitle
' Get list of selected tracks from MediaMonkey
Set list = SDB.CurrentSongList
' Process all selected tracks
For i=0 To list.count-1
Set itm = list.Item(i)
OriginalTitle = itm.Title
NewTitle = Trim(OriginalTitle)
itm.Title = NewTitle
Next
' Write all back to DB and update tags
list.UpdateAll
End Sub
Could you be so kind as to tell me how to remove characters (from the start) of the file? (if it's also in your tags obviously, else i could've simply overwritten them)
I'm sure it's simple, but in the help files it's always about KEEPING a number of characters from the left, or inate keeping a FIXED number of characters from the right, both which are not an option. (and although i could've probably removed it by hand with all the time i wasted looking in all the wrong places, it's the principal of not fixing about 75 files by hand if it can be automated )
I'm sure it's simple, but in the help files it's always about KEEPING a number of characters from the left, or inate keeping a FIXED number of characters from the right, both which are not an option. (and although i could've probably removed it by hand with all the time i wasted looking in all the wrong places, it's the principal of not fixing about 75 files by hand if it can be automated )