RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [MM2+]

Post a reply

Visual Confirmation

To prevent automated access and spam, you are required to confirm that you are human. Please place a check mark next to all images of monkeys or apes. If you cannot see any images, please contact the Board Administrator.

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [MM2+]

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by chrisjj » Wed Oct 29, 2014 2:08 pm

ZvezdanD wrote:"Find what ... From" and "Replace with ... In" doesn't make sense in English anyway.


"Find what ... From" does not makes sense. "Replace with ... In" does make sense.

ZvezdanD wrote:The Track Volume database field is numerical and it cannot be empty.


Since the MM UI does allow empty, I suggest the script should make the necessary conversion. They user should not have to guess from a VB conversion error whatever workaround is needed for an internal representation limitation.

ZvezdanD wrote:MediaMonkey uses -999999 value internally when it is unspecified.


OK, so I shall use -999999 to represent empty.

I suggest the script would be better if its UI input value interpretation was consistent with that MediaMonkey UI's.

ZvezdanD wrote:You should not use the empty string if you want to clear that field


I suggest it would be better for the script not to fail with a VB script compilation error just because it accepted a UI input value that it cannot further process.

ZvezdanD wrote:The Find Next button is not unexpectedly disabled. When that button is disabled that means that there is no more tracks that could be searched in the current direction (e.g. if you have selected 10 tracks and the current one is 10th)...

I was unexpected by me, since there's no such mention in the docs and no visible indication of current.

ZvezdanD wrote:There is already the "Reset Track Volume field" that could be user-modified changing the Track Volume in the Into combo box to the Album Volume

Thanks.

ZvezdanD wrote:
chrisjj wrote:9 Given that Tag Manipulation Presets actually manipluates metadata in tags and dabase, I think that command name is misleading. Better would be Metadata Manipulation Presets.

I didn't see that anybody is complaining to the author of the MP3Tag for the name of his program.


The only metadata Mp3tag manipulates is in the tag. Your program is manipulating data in the database.

ZvezdanD wrote:Many users don't know what is the "metadata", but many of them are heard for the "tag".

The MediaMonkey UI uses tag to refer to the tag, not the database record. I think it would be nice if your script accorded.

Thank you for the improvements.

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by ZvezdanD » Wed Oct 29, 2014 10:07 am

chrisjj wrote:1 "Find what ... Into" http://i.imgur.com/gGsDSlO.png does not make sense in English. I think what is meant is "Find what ... In"

Well, English is not my native language and I though that "in" is the same as "into". I didn't want to use such short label as "In", so I decided to use "Into". It would be unpractical to change that now because of the compatibility with the existing presets since they have "Into" word in them. Also, there is "<Into Field>" tag that exists in many presets which is related to the value set in the Into combo box.

Besides, the new version (which is in development) will have an option to switch roles for Into and From combo boxes, i.e. it could have "Find what ... From" and "Replace with ... Into". With that new option it will be possible to search for one field and replace value in some another field (the current version allows only to replace value of the same field that is searching, unless some hacking that could be done using VBScript expressions with the Execute statement as it is used in the "Swap <From Field> and <Into Field>" preset). "Find what ... From" and "Replace with ... In" doesn't make sense in English anyway.

chrisjj wrote:2 The "n selected tracks" button label http://i.imgur.com/gGsDSlO.png overfills the button

That is already changed in the new version.

chrisjj wrote:3 When I try this Replace of any Track Volume value with null http://i.imgur.com/0InqTl0.png, I get an error Microsoft VBScript compilation error: http://i.imgur.com/Vo3hfW5.png
4 When Track Volume is null, Old Track Volume shows a nonsense value: http://i.imgur.com/hGjdPQF.png . Replace All gives a different error: http://i.imgur.com/HsQapX8.png

The Track Volume database field is numerical and it cannot be empty. MediaMonkey uses -999999 value internally when it is unspecified. You should not use the empty string if you want to clear that field, as you could see if you select the "Reset Track Volume field" preset.

chrisjj wrote:5 The Find Next button can b unexpectedly disabled http://i.imgur.com/COZAtaD.png
6 The Find Next button on http://i.imgur.com/COZAtaD.png becomes enabled if I click the 'n selected tracks' button twice http://i.imgur.com/nq5JU8d.png, but then clicking Find Next does nothing except disable the button.
7 Here http://i.imgur.com/ILnDoNK.png clicking Find Next does nothing initially, but repeated does eventually scroll the (unlabelled) list.

The Find Next button is not unexpectedly disabled. When that button is disabled that means that there is no more tracks that could be searched in the current direction (e.g. if you have selected 10 tracks and the current one is 10th), or the finding is done with all tracks without any matching. You could toggle "Backward search direction" and it might be enabled again.

chrisjj wrote:8 It would be nice to have preset to delete Album Volume

There is already the "Reset Track Volume field" preset that could be user-modified changing the Track Volume in the Into combo box to the Album Volume, then you could save it as the new preset by click on the Add button. That is just two or three clicks and a few keystrokes to rename the preset. There are already too much included presets, for most users they are overwhelming and if I start to add such trivial presets that requires two or three clicks to customize some existing preset then nobody would like that.

chrisjj wrote:9 Given that Tag Manipulation Presets actually manipluates metadata in tags and dabase, I think that command name is misleading. Better would be Metadata Manipulation Presets.

I didn't see that anybody is complaining to the author of the MP3Tag for the name of his program. There are also many other programs which have Tag in their name even when they store metadata in their databases. Many users don't know what is the "metadata", but many of them are heard for the "tag".

Anyway, thanks for the reports and suggestions.

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by chrisjj » Wed Oct 29, 2014 6:25 am

Trying the current download from the root message, RegExp Find and Replace V4.3, on MM 1708 on Win 7 Pro 64-bit with Windows Classic desktop theme.

1 "Find what ... Into" http://i.imgur.com/gGsDSlO.png does not make sense in English. I think what is meant is "Find what ... In"
2 The "n selected tracks" button label http://i.imgur.com/gGsDSlO.png overfills the button
3 When I try this Replace of any Track Volume value with null http://i.imgur.com/0InqTl0.png, I get an error Microsoft VBScript compilation error: http://i.imgur.com/Vo3hfW5.png
4 When Track Volume is null, Old Track Volume shows a nonsense value: http://i.imgur.com/hGjdPQF.png . Replace All gives a different error: http://i.imgur.com/HsQapX8.png
5 The Find Next button can b unexpectedly disabled http://i.imgur.com/COZAtaD.png (viewtopic.php?f=2&t=28510 says "in the Find what text box you could enter string which you want to find inside of the MM field specified in the Into dropdown list, and after click on the Find Next button you should get the first track which contain matching criteria.")
6 The Find Next button on http://i.imgur.com/COZAtaD.png becomes enabled if I click the 'n selected tracks' button twice http://i.imgur.com/nq5JU8d.png, but then clicking Find Next does nothing except disable the button.
7 Here http://i.imgur.com/ILnDoNK.png clicking Find Next does nothing initially, but repeated does eventually scroll the (unlabelled) list. Perhaps it is finding a match but just failing to highlight the match.
8 It would be nice to have preset to delete Album Volume, to fix this problem: viewtopic.php?f=1&t=78027&p=396569&hilit=Analyse#p396569
9 Given that Tag Manipulation Presets actually manipluates metadata in tags and dabase, I think that command name is misleading. Better would be Metadata Manipulation Presets.

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by chrisjj » Wed Oct 29, 2014 5:40 am

Zvezdan, in case you're unaware, the images are missing from the root post: http://i.imgur.com/AXjYcff.png

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by Guest » Thu Oct 23, 2014 8:07 pm

Wow impressive job. Thanks.
I found the list overwhelming so thanks for making it so that given choices could be deleted or else going through that whole list every time one wants to change something would have taken forever.
In my case I don't understand script therefore I have the following questions regarding their meaning
What do the following symbols mean within the quotes excluding the commas " ( ), [ ], ..., <>,
& what do the following words mean within the quotes, '' into field, from field '' seen written as "' <into field>, <from field>''
I'm asking myself "Into or From what field?
I think it would have been a good idea if we actually saw before & after examples displayed so we know what each script means exactly/how the change will look like.
In my case I am interested in doing the following (if the commands are there I don't see them or rather understand them as being as such).
-1- The most important thing to me something that seems we can do with lyrics but nothing else is changing a song title or album title the way it would be written in a sentence, in other words only the 1st word capitalized and nothing else.
A Dog Gone For The Whole Summer At John's House
would be changed to: A dog gone for the whole summer at john's house
Even better is if it kept grammar rules whereby 'John's' in this case would remain capital
-2- I would like all "Remix" OR 'remix' to show as 'rmx' and "Mix" or ''mix'' to show as 'mx'
-3- and "Featuring" and/or "featuring" and/or "Feat." or "feat." as '' ft ''
I see we can do this with lyrics but not song title or Album
Are these features/choices already there (if so which are they)? and if not how can I add them/create them?
Thank you

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by ZvezdanD » Sun Sep 28, 2014 4:07 am

Here is the excerpt from the Installation section of the first post of this thread:
"if you are on Vista or Win7 and you got "Product installation error", make sure you have MM3 set to "Run as Administrator"."

It is written when the MM3 and Win7 was actual, but it applies to MM4 and Win >= 8 as well.

The another solution with MM4 is to turn on the option "Install for the current user only (doesn't require admin rights)" when installing the add-ons.

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by onefreeborn » Sun Sep 28, 2014 1:19 am

Can't install on Win 8.1 with MM v4.1.4.1709

Can't install. Just get following error:

Cannot create file c:\programdata\mediamonkey\extensions\regexpreplace\uninstall.vbs

However, this file, in this location does indeed already exist. Furthermore, the extension is listed in the extensions list within MM as v4.3 with no update available.

But, under the MM Edit menu there is no entry for editing Tags (in other words, no menu entry called "RegExp Find and Replace".)

Furthermore, I can't uninstall the extension either:

Error #70 - Microsoft VBScript runtime error
Permission denied
File: "C:\ProgramData\MediaMonkey\Extensions\RegExpReplace\Uninstall.vbs", Line: 53, Column: 4
[ OK ]

I am logged in as an Administrator on the machine.
Any help would be greatly appreciated. I use this extension on another computer and find it helpful.

-------------------------
UPDATE... I figured out my problem.. You must run MediaMonkey in Administrative mode to install this extension (and probably others too) so just right-click on the MediaMonkey shortcut and select "Run as Administrator" before installing/configuring this extension. Thereafter, you don't need to run it in Administrator mode to use it.

However, if you want to update your extensions at a later time you must be running MM as Administrator mode to do so. So... it may be helpful to just set MM to always "Run as Administrator" so you won't have the problem I did above. To do so, just right-click the MM shortcut, click Properties, select the Compatibility tab, and check the box for "Run this program as an administrator".

Although I solved the problem myself, I'm leaving this post so that Google can index the error messages above and hopefully benefit some other person that may have this problem.

Thanks for a great extension!

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by dtsig » Tue Jun 24, 2014 4:55 pm

Thanks man ... really great tools

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by ZvezdanD » Tue Jun 24, 2014 9:38 am

dtsig wrote:Would it be possible for you to email those of us who have donated for one of your tools, to let us know when you are adding features to any of your tools that are donate only.

Yes, of course. I will send you the new version as soon as it is ready.

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by dtsig » Tue Jun 24, 2014 9:18 am

ZvezdanD wrote:
MMFrLife wrote:Is there some sort of preset search function? If not, would that be too difficult to implement?

I have implemented that in the new version which should be ready very soon, but it will be available only to those who donated to me. It has also added a possibility to group presets into sub-menus and some another enhances.
Would it be possible for you to email those of us who have donated for one of your tools, to let us know when you are adding features to any of your tools that are donate only. That way we will know about it (really hard to read all the bits here and other forums).
Look forward to these added features

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by MMFrLife » Tue Jun 24, 2014 8:25 am

That sounds and looks pretty sweet! Hard to tell though, without getting into it and testing it out. I will be donating as soon as that hits!!

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by ZvezdanD » Tue Jun 24, 2014 8:12 am

MMFrLife wrote:Is there some sort of preset search function? If not, would that be too difficult to implement?

I have implemented that in the new version which should be ready very soon, but it will be available only to those who donated to me. It has also added a possibility to group presets into sub-menus and some another enhances.

Image

Image

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by MMFrLife » Tue Jun 24, 2014 1:10 am

That's what I figured. Thanks.

Is there some sort of preset search function? If not, would that be too difficult to implement?

I have the list of presets in text format and I've sectioned them out (with spacing) by function types, like add/remove/assign digits, add/remove/assign string to begin/end;
etc. However, they are still in the original order. I was thinking one could find the number from their text list, enter in a search field, and it would come right up.
....too difficult?

Would the numbers need to actually be in the preset drop down to work? I figure numbering them directly is problematic because every time you added a new preset the numbers would change. Is this thinking correct or am I way off?

......or is there already someway to do this or something similar?

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by ZvezdanD » Tue Jun 24, 2014 12:26 am

MMFrLife wrote:How does the "shortcut" field work? Is this to set a hot key?

Here is the excerpt from the Usage section of the first post of this thread:
"The next control is the Shortcut text box which could be used to specify keyboard hotkey for the selected preset, for example Ctrl+T, which allows us to apply such preset to the selected tracks by the press on that hotkey."

Re: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [M

Post by MMFrLife » Mon Jun 23, 2014 7:03 pm

How does the "shortcut" field work? Is this to set a hot key?

Top