RegExp Find and Replace
- MediaMonkey Add-on -
Version 4.0.3
by Zvezdan Dimitrijevic
This add-on is for use with MediaMonkey v2.x or v3.x. It allows powerful finding and replacing of strings inside of selected/visible tracks in the tracklist window of your audio database. The matching criteria and the replacement string can be created using Regular expressions or VBScript expressions which provides very flexible transformations of data. Almost all MM fields are supported!
For a discussion about this add-on and a furher explanation about its usage, you could visit the related MediaMonkey forum thread. If you are using some skin which is not supported by default, you could take a look of skin styles for this add-on made by nynaevelan at the next forum thread.
Donation:
These add-ons are donationware. Their development took considerable amount of time, so if you found these add-ons useful and want to help their further development, it would be nice if you send some small donation. You could donate as much as you think that is appropriate using Moneybookers or direct bank wire transfer.
What is new:
- v4.0.3 - 2010-05-21
- Added: 13 new presets;
- Fixed: error when "Trim toolbar button's caption" value is changed.
- v4.0.2 - 2010-05-10
- Fixed: <Number> tag with MinValue and MaxValue arguments.
- v4.0.1 - 2010-04-14
- Changed: preset captions in the menu/toolbar when "Show dialog box for adjusting of the preset..." is checked on.
- v4.0 - 2010-04-10
- Added: possibility to specify custom arguments inside of the Find what and Replace with strings, e.g. instead of 1 in some preset you could write <Number Caption="Increment" Value="1"> and when you choose that preset from menu or toolbar you would get dialog box which allows adjusting of that value; for description about this functionality please take a look at the Information section;
- Added: possibility to adjust source and destination fields inside of mentioned dialog box for preset, if you specify <Into Field> or <From Field> in the preset name;
- Added: option "Show dialog box for adjusting of the preset selected in the menu or toolbar" (you could turn off display of the mentioned dialog box, even if you have presets with custom arguments);
- Added: option "Modeless Find & Replace dialog box (allowed access to other parts of the program)" (now you could use F&R dialog without ever closing it);
- Added: option "Display of tracks in Find & Replace dialog box synchronized with main window" (when you change node or selected tracks, this is automatically reflected in the F&R dialog; fully functional with MM 3.1.0.1218 or up);
- Added: option "Show the toolbar button for the Find & Replace dialog box"
- Added: option "Show the toolbar button for the Presets dropdown list"
- Added: option "Show toolbar buttons for presets with enabled button in Find & Replace dialog box" (you could turn off all preset buttons, even if they have Toolbar button option checked on in the F&R dialog);
- Added: Folder, Filename and Type fields (Path = Folder \ Filename . Type);
- Added: Bookmark and Playback % fields (the playback position for audiobooks, the first field is in ms and the second one is in percents);
- Added: DateISO, SetVar and GetVar custom functions;
- Added: many new presets, some old improved;
- Changed: Save button now have 3 possible states depending of modifications in the F&R dialog - Rename, Update and Add (it is now much easier to create new preset based on some existing one).
- v3.6 - 2009-07-02
- v3.5.1 - 2009-06-18
- Fixed: error during start-up if none preset exists.
- v3.5 - 2009-05-14
- Improved: skin styles;
- Fixed: load of empty and duplicated presets.
- v3.4.3 - 2009-05-10
- Fixed: modifications of the Date and the Original Date fields.
- v3.4.2 - 2009-04-14
- Fixed: saving of presets with localized versions of Windows.
- v3.4.1 - 2009-02-25
- Fixed: Replace/Replace All for some presets (a bug introduced with the last update).
- v3.4 - 2009-02-21
- Added: possibility to cancel Find Next/Replace All operations;
- Added: insert of the field name on the cursor position in the Replace with edit box (MM 3.1.0.1222 or up);
- Added: some new presets;
- Improved (bug): speed of the Replace All (drastically) when there are many unmatched tracks (bug).
- v3.3 - 2009-02-02
- Added: auto-repeat for Up/Down buttons in the Export/Import dialog box with MM 3.1.0.1220 or up;
- Added: word-wrap option for display of presets in the Export/Import dialog box;
- Added: alphabetical sort of presets in the Export/Import dialog box by click on the table header.
- v3.2 - 2009-01-20
- Improved: look of dialog boxes with some skins (custom configurable with CSS files);
- Improved: speed of selecting tracks for main tracklist (drastically) and Now Playing panel with MM 3.1.0.1214 and up;
- Added: some new presets (some old improved).
- v3.1 - 2009-01-10
- Added: option to enable/disable display of the toolbar button for the last executed preset;
- Added: option to keep display of the toolbar button for the last executed preset after restart;
- Added: some new presets (some old improved);
- Fixed: detection when the Now Playing panel has a focus, even with MM3 older that 3.1.0.1210;
- Fixed: Select un/matched/Select to replace.
- v3.0 - 2009-01-02
- Added: export/import/batch delete of presets;
- Added: option to display every checked preset as the toolbar button;
- Added: option to asign an icon to the preset item in the menu/toolbar (could be from external .ico file);
- Added: option for backward direction when finding matched tracks;
- Added: possibility to find/replace data in tracks from the Now Playing panel [MM3];
- Added: Day, Month, Date, Original Day, Original Month and Original Date fields (the old Date renamed to Year, the old Original Date renamed to Original Year; the new Date/Original Date accepts full date format YYYY-MM-DD) [MM3];
- Added: option to delete emptied folders when moving files as a result of the Path modification;
- Added/improved: the New button (old behavior when creating new presets is abandoned);
- Added: many new presets (many old improved);
- Improved: speed of Replace and Replace All when only few songs from a large list of songs should be updated;
- Fixed/improved: Select un/matched/Select to replace with large number of selected/visible tracks;
- Fixed: reading/writing presets from the .ini file with MM 3.1.0.1198 and newer (actually, the format of presets in .ini file is changed);
- Fixed: truncated bottom buttons with some skins.
- v2.2.2 - 2008-06-20
- Fixed: error "file not found".
- v2.2.1 - 2008-06-19
- Added: synchronous display of current track in the table during navigation;
- Added: possibility for jump to current track by click on the coresponding row number in the table;
- Fixed: reset of the table after Replace command;
- Fixed: checked state of rows in the table after toggle with the "?" button;
- Fixed: merging new presets with old ones after installation for multi-user accounts.
- v2.2 - 2008-06-14
- Added: possibility to check which tracks from the table should be replaced;
- Added: IfNull custom function for use with VBScript expressions;
- Added: many new presets (some old improved);
- Fixed: moving to the previous/next group of tracks (buttons |< and >|).
- v2.1.2 - 2008-06-11
- Fixed: display of the new line characters in the string when used with the VBScript expression.
- v2.1.1 - 2008-06-10
- Fixed: display and replacement of the new line characters in the string (Lyrics, Comment).
- v2.1 - 2008-05-27
- Added: options to select all un/matched tracks in the tracklist (Sel. matched and Sel. unmatch.) [MM3];
- Added: options to keep only un/matched tracks, other tracks are removed from the tracklist (Keep matched and Keep unmatch.);
- Added: option to select all tracks that could be modified, i.e. old content is different than replacement (Sel. replace) [MM3];
- Added: option to keep only tracks that could be modified (Keep replace);
- Added: option to toggle between selected/visible tracks;
- Added: different highlight colors for matched tracks and for tracks that could be modified;
- Added: SQLQuery custom function for use with VBScript expressions;
- Added: many new presets (some old improved);
- Improved: response during a table refresh with time consuming expressions;
- Fixed: table with old/new content not updated after Replace All.
- v2.0.1 - 2008-05-19
- Fixed: INI file with presets;
- Fixed: the ordinal number of tracks displayed in the table.
- v2.0 - 2008-05-19
- Added: support for presets (Save, Delete, Move Up/Down) with more than 30 already predefined;
- Added: support for VBScript expressions for replacement;
- Added: the table with old/new display for defined number of selected/visible tracks;
- Added: highlighted display of matches;
- Added: Find what/Replace with dropdown lists with recently entered strings;
- Added: support for the progress bar and many other improvements.
- v1.0.2 - 2008-05-07
- Fixed: updating tags into files.
- v1.0.1 - 2008-04-25
- Fixed: error which is manifesting with double apostrophes inside of the field text.
- v1.0 - 2008-04-19
Installation:
- For MediaMonkey 3.x - just double-click on the RegExpReplace-xx.mmip file; if you are on Vista or Win7 make sure you have MM3 set to "Run as Administrator"; if you downloaded the installation package with IE7 and it changed its extension to a .zip, you should first change it back to a .mmip.
- For MediaMonkey 2.x - rename a .mmip extension to a .zip, extract RegExpReplace.vbs and RegExpReplace.ini files to the MediaMonkey's "Scripts\Auto" folder and restart MM program.
Note: The RegExpReplace.ini file in Auto folder is used only after installation. During its work, the RegExp Find & Replace add-on stores presets into the MediaMonkey.ini file.
Usage:
Choose the Edit / RegExp Find and Replace option; add-on settings are in the Tools / Options dialog box within RegExp Find and Replace tab.
Information about 4.0 version:
The main addition of this version which needs some more explanation is the possibility to get dialog boxes whenever you click on some preset in the menu or toolbar if it is modified adequately. Usage of those dialog boxes is much simpler for use than the RegExp Find & Replace dialog box which has many controls that are confusing for beginners. Now you could choose, for example, Edit/Tag Manipulation Presets/Copy <From Field> to <Into Field>... and you would get the dialog box with just two dropdown lists for choosing the source and the destination fields. The number of displayed controls depends of that how the preset is modified, which will be explained further.
If you specify <Into Field> in the name of some preset, you would get the dialog box with one dropdown list from which you could choose the destination field after you click on that preset in menu. Similarly, if you specify <From Field> in the name of preset, you would get the dialog box with the dropdown list for choosing the source field. Of course, if you specify both <Into Field> and <From Field> in the name of the preset, you would get the dialog box with both dropdown lists. For example, the included preset "Copy <From Field> to <Into Field>..." displays both lists.
If you specify custom arguments inside of the Find what and Replace with strings using the <String Caption="xxx" Value="yyy"> tag, you would get the preset dialog box with the text box in which you could write some string and that string would be entered into same place in the Find what/Replace with string where you have put that <String> tag. Also, if you specify the <Number Caption="xxx" Value="yyy"> tag, you would get the preset dialog box with the spinedit control for choosing the numeric value. For example, if you write <Number Caption="Increment" Value="10"> instead of 10 in some preset, you would get the dialog box which allows adjusting of that numeric value.
The Value parameter is mandatory for those two tags. The Caption parameter allows you to specify descriptive text which would be displayed next to the control. It is not necessary to be specified, but it would be better for understanding of such preset if you use it. The <Number> tag additionally allows to specify two optional parameters: MinValue and MaxValue, the first one is for specifying minimal value which could be entered with spinedit control, and the second one is for the maximal value. If you omit those parameters, the default values are -1000 and 1000 correspondingly.
You could specify as many <String> and <Number> tags in the Find what and Replace with string as you want, and you would get the adequate number of controls within the preset dialog box. Of course, those controls would be displayed together with the source and the destination dropdown lists if you have <From Field> and/or <Into Field> in the name of the same preset. For example, the included preset "Replace specified string with another one in <Into Field>..." has the dialog box with the destination dropdown list and two text box controls - the first one is for specifying the string which would be replaced and the another one is for specifying the replacement string.
Many of included presets are modified to support that new functionality, and if you are already using some old version of this add-on, it is strongly recommended to remove all your presets from the .ini file before installing the new version. However, before that you should make a backup of your own created presets and after the installation, you could import them back.