Remove Prefixes 1.1 - Updated 26/01/2008

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

Yeah, this script does seem to have some limitations. I'm not planning to sort them out though as the "Find and Replace" and many other scripts are far more powerful and can be used to achieve the same fixes.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
sommo

Re: Remove Prefixes 1.1 [MM2+3]

Post by sommo »

I would just like to say a thank you trixmoto, for this addon!
This is one of the reason why I use MediaMonkey!
It is really helpful and I do use it :)
Keep up the good work & Happy coding!
aprzybylo
Posts: 301
Joined: Tue Aug 21, 2007 2:58 pm
Location: Ottawa, Canada
Contact:

Re: Remove Prefixes 1.1 [MM2+3]

Post by aprzybylo »

I try to remove suffixes from some files and it doesn't work. I downloaded the album of leonard cohen and all titles have " [Live In London]/Live In London" at the end that I want to remove. However the script doesn't work. Any reason?

Also I tried to remove even part of that string (like only "n" at the end of title) still doesn't work
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Remove Prefixes 1.1 [MM2+3]

Post by trixmoto »

Maybe a screenshot of the script options screen would be helpful. Of course the "Reg Exp" script is much more powerful and will probably give you better results - this is an old and rather simplistic script with limited functionality.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
buckw
Posts: 26
Joined: Tue Aug 21, 2007 3:08 pm
Location: Texas

Re: Remove Prefixes 1.1 [MM2+3]

Post by buckw »

This is a very useful script--thank you.

I'd like to report an issue that I encountered. I attempted to remove a prefix from the title field of all songs in an album (the artist was appended as a prefix to each track title, and I wanted to remove it). When I ran the script, half the titles were fixed, and half were unchanged. I ran the script again on the unchanged titles without success.

Any suggestions?

Thank you.
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Remove Prefixes 1.1 [MM2+3]

Post by trixmoto »

I can only imagine that the suffix is different in some way, it just loops through checking each track so I can't think of any other reason. :-?
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
buckw
Posts: 26
Joined: Tue Aug 21, 2007 3:08 pm
Location: Texas

Re: Remove Prefixes 1.1 [MM2+3]

Post by buckw »

trixmoto wrote:I can only imagine that the suffix is different in some way, it just loops through checking each track so I can't think of any other reason. :-?
Thank you. I thought that as well, but confirmed that the prefixes were identical. I'll keep trying.
bru

Re: Remove Prefixes 1.1 [MM2+3]

Post by bru »

From the menu I see scripts under tools and 5 commands under scripts. How do I put in your script?
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Remove Prefixes 1.1 [MM2+3]

Post by trixmoto »

You need to go to my website (the link in my signature) and go to the scripts section and download the installation package for this script. After installing that, there should be 6 commands in that list.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Juan Valdez

Re: Remove Prefixes 1.1 [MM2+3]

Post by Juan Valdez »

How do I use wild cards to remove all track numbers
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Remove Prefixes 1.1 [MM2+3]

Post by trixmoto »

You'd need to use the RegExp script, this one is designed to be very simple.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
mmacauley
Posts: 2
Joined: Mon Sep 24, 2012 1:39 pm

Re: Remove Prefixes 1.1 [MM2+3]

Post by mmacauley »

A very promising add-on -- unfortunately I haven't yet got it to work.

I selected four tracks, with these titles:

String Quartet No. 4 in C minor, Op. 18/4: 1. Allegro ma non tanto
String Quartet No. 4 in C minor, Op. 18/4: 2. Andante scherzoso quasi allegretto
String Quartet No. 4 in C minor, Op. 18/4: 3. Menuetto. Allegretto
String Quartet No. 4 in C minor, Op. 18/4: 4. Allegro - Prestissimo

I wanted to remove the opening text, "String Quartet No. 4 in C minor, Op. 18/4: ", from each title (since I've put that information into the Grouping field). So I copied that text, selected these four tracks, went Tools-Scripts-Remove Prefixes, chose Prefix, pasted that text (without quotes) into the box, unchecked everything but Title, clicked OK. It displayed the list of the titles, just as they were, and when I clicked OK, nothing changed.

Am I doing something wrong?
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Remove Prefixes 1.1 [MM2+3]

Post by trixmoto »

You need to take the space off the end of your string, the script automatically adds one for you.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
mmacauley
Posts: 2
Joined: Mon Sep 24, 2012 1:39 pm

Re: Remove Prefixes 1.1 [MM2+3]

Post by mmacauley »

Thank you!
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Remove Prefixes 1.1 [MM2+3]

Post by trixmoto »

No worries, glad I could help :)
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Post Reply