[MM3 Script] Simple Append [2009-04-10]

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

Moderators: Peke, Gurus

Teknojnky
Posts: 5537
Joined: Tue Sep 06, 2005 11:01 pm
Contact:

[MM3 Script] Simple Append [2009-04-10]

Post by Teknojnky »

Here is small script that provides a simple dialog to add text to certain fields.

I realize there some other scripts like Reg Ex that can accomplish the same thing, but I wanted something quick and easy to use to add common prefix/suffix to titles and such.

the only fields that this will modify are title, comment, artist, album artist, and album.

there is a 1 line preview so you can see what it will look like, there is no undo so be careful.

it will also remember your previous selections for your convenience if your adding the same thing to different files alot

download

Image

updated, added genres, classifcations, custom fields, fixed made non-resizable

fixed type mismatch error
Last edited by Teknojnky on Fri Apr 10, 2009 5:07 pm, edited 2 times in total.
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Re: [MM3 Script] Simple Append [2009-01-12]

Post by nynaevelan »

I will try this out because I too was looking for a simple way to append to a field. Tell me does it use the selected separator from the Options Sheet? And although I have not used it yet, can you think about adding the classification and custom fields??

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
Teknojnky
Posts: 5537
Joined: Tue Sep 06, 2005 11:01 pm
Contact:

Re: [MM3 Script] Simple Append [2009-01-12]

Post by Teknojnky »

nynaevelan wrote:I will try this out because I too was looking for a simple way to append to a field. Tell me does it use the selected separator from the Options Sheet?
You mean for mult-value fields? No, this simply appends or pre-pends the specified text to the chosen field of the selected tracks. I did not test with multi-value items, so test before you do a large group.

My most common use will be appending (Live) or (Acoustic) to various tracks or albums, but also useful for adding "The" or whatever to artists, or adding your own personal phrase to the comments without removing the existing. (note: have not done much testing with large comments, so they may not display correctly in the preview)
And although I have not used it yet, can you think about adding the classification and custom fields??
Yea I suppose I can add those sooner or later.
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Re: [MM3 Script] Simple Append [2009-01-12]

Post by nynaevelan »

I get the following error when installing:

Image

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
nohitter151
Posts: 23640
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA
Contact:

Re: [MM3 Script] Simple Append [2009-01-12]

Post by nohitter151 »

nynaevelan wrote:I get the following error when installing:



Nyn
Nyn,

I'm pretty sure that's a result of this.
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?

Please no PMs in reply to a post. Just reply in the thread.
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Re: [MM3 Script] Simple Append [2009-01-12]

Post by nynaevelan »

You're probably right because I just tried installing a script which I had installed in 1209. Guess I will have to do it manually. Thanks NH.

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
Teknojnky
Posts: 5537
Joined: Tue Sep 06, 2005 11:01 pm
Contact:

Re: [MM3 Script] Simple Append [2009-01-12]

Post by Teknojnky »

duno about the error, not using vista im using xp x64 and its working ok here.

add genre, classifications, custom fields.

enjoy
MM3 monkey
Posts: 455
Joined: Mon Aug 27, 2007 2:34 am

Re: [MM3 Script] Simple Append [2009-01-12]

Post by MM3 monkey »

Thank you very much, Teknojnky. Vital!

I wish that MM would show a greyed checkbox or something to show you the difference between a bunch of tracks who's e.g comment field was empty and a bunch of tracks which had more than one different comments.

Better head over to the wishlist!
reggie_mal
Posts: 47
Joined: Fri Apr 11, 2008 3:24 pm

Re: [MM3 Script] Simple Append [2009-01-12]

Post by reggie_mal »

Hi,

It's a great script. I downloaded it to replace a similar script called "Append Comment" Just one problem though ....................... occasionally it doesn't seem to work on a selection of tracks. It seems random. Sometimes there is no error message....the status bar whizzes through and indicates that "## tracks are being tagged", but nothing actually happens.

Other times I get an error

Error #13 - Microsoft VBScript runtime error
Type mismatch: '[string: "Comment"]'
File: "C:\Program Files\MediaMonkey\Scripts\SimpleAppend.vbs", Line:246, Column: 8

I figured it might have something to do with spaces or quotes or something, but when I try the same append on a single track, sometimes it works and sometimes it doesn't!!

PLEASE HELP!!

Thanks
reggie_mal
Posts: 47
Joined: Fri Apr 11, 2008 3:24 pm

Re: [MM3 Script] Simple Append [2009-01-12]

Post by reggie_mal »

I think it depends on what is previously in the comments field to which I am trying to append or pre-pend text. If the existing text is different for all the tracks in the selection, then there are problems, and therefore you have to do them individually!

Is there a fix?
Sabry

Re: [MM3 Script] Simple Append [2009-04-10]

Post by Sabry »

Thanks for this excellent script!
Eyal
Posts: 3116
Joined: Sun Jun 26, 2005 9:27 am
Location: Québec

Re: [MM3 Script] Simple Append [2009-04-10]

Post by Eyal »

Thank you for this script! Very useful for me on regular basis.

I'm currently modifying the script to add Grouping field to the list, but noticed that fields [Genre] and [Occasion] are missing from the dropdown choices:

Code: Select all

      DropField.Common.SetRect 370, 10, 120, 30
      DropField.AddItem("Title")
      DropField.AddItem("Comment")
      DropField.AddItem("Artist")
      DropField.AddItem("AlbumArtist")
      DropField.AddItem("Album")
      DropField.AddItem("Tempo")
      DropField.AddItem("Mood")
      DropField.AddItem("Quality")
      DropField.AddItem("Custom 1")
      DropField.AddItem("Custom 2")
      DropField.AddItem("Custom 3")
      DropField.AddItem("Custom 4")
      DropField.AddItem("Custom 5")
The code appends data on the fields based on this conditions:

Code: Select all

    Select Case Field
      Case 0
        FieldText = Song.Title
      Case 1
        FieldText = Song.Comment
      Case 2
        FieldText = Song.ArtistName
      Case 3
        FieldText = Song.AlbumArtistName
      Case 4
        FieldText = Song.AlbumName
      Case 5
        FieldText = Song.Genre
      Case 6
        FieldText = Song.Tempo
      Case 7
        FieldText = Song.Mood
      Case 8
        FieldText = Song.Occasion
      Case 9
        FieldText = Song.Quality
      Case 10
        FieldText = Song.Custom1
      Case 11
        FieldText = Song.Custom2
      Case 12
        FieldText = Song.Custom3
      Case 13
        FieldText = Song.Custom4
      Case 14
        FieldText = Song.Custom5
I'm glad that it didn't affect my fields (I think so) as I mostly use this script to append data to Comment and Title fiedls.

Eyal :~)
Skins for MediaMonkey: Cafe, Carbon, Helium, Spotify, Zekton. [ Wiki Zone ].
thefaceman
Posts: 367
Joined: Sun Aug 28, 2005 10:43 pm

Re: [MM3 Script] Simple Append [2009-04-10]

Post by thefaceman »

I get an error - Product Installation error. I had it on an older computer and need to install it again on my new one.

-thanks
-thefaceman
Lowlander
Posts: 56491
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: [MM3 Script] Simple Append [2009-04-10]

Post by Lowlander »

thefaceman wrote:I get an error - Product Installation error
See: http://www.mediamonkey.com/support/inde ... ticleid=59
Post Reply