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

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

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

Postby Teknojnky » Mon Jan 12, 2009 10:09 pm

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.
Teknojnky
 
Posts: 5521
Joined: Tue Sep 06, 2005 11:01 pm

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

Postby nynaevelan » Mon Jan 12, 2009 10:20 pm

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
nynaevelan
 
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA

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

Postby Teknojnky » Mon Jan 12, 2009 10:27 pm

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.
Teknojnky
 
Posts: 5521
Joined: Tue Sep 06, 2005 11:01 pm

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

Postby nynaevelan » Mon Jan 12, 2009 10:35 pm

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
nynaevelan
 
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA

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

Postby nohitter151 » Mon Jan 12, 2009 10:37 pm

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.
nohitter151
 
Posts: 23640
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA

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

Postby nynaevelan » Mon Jan 12, 2009 10:42 pm

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
nynaevelan
 
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA

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

Postby Teknojnky » Mon Jan 12, 2009 11:04 pm

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

add genre, classifications, custom fields.

enjoy
Teknojnky
 
Posts: 5521
Joined: Tue Sep 06, 2005 11:01 pm

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

Postby MM3 monkey » Sat Jan 17, 2009 7:50 am

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!
MM3 monkey
 
Posts: 445
Joined: Mon Aug 27, 2007 2:34 am

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

Postby reggie_mal » Sat Feb 28, 2009 11:34 am

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]

Postby reggie_mal » Sat Feb 28, 2009 11:53 am

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?
reggie_mal
 
Posts: 47
Joined: Fri Apr 11, 2008 3:24 pm

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

Postby Teknojnky » Fri Apr 10, 2009 5:07 pm

fixed type mismatch error
Teknojnky
 
Posts: 5521
Joined: Tue Sep 06, 2005 11:01 pm

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

Postby Sabry » Sat Oct 23, 2010 8:51 am

Thanks for this excellent script!
Sabry
 

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

Postby Eyal » Tue Dec 28, 2010 7:09 pm

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 ].
Eyal
 
Posts: 3099
Joined: Sun Jun 26, 2005 9:27 am
Location: Québec

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

Postby thefaceman » Thu Sep 15, 2011 2:49 pm

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
thefaceman
 
Posts: 367
Joined: Sun Aug 28, 2005 10:43 pm

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

Postby Lowlander » Thu Sep 15, 2011 2:55 pm

thefaceman wrote:I get an error - Product Installation error
See: http://www.mediamonkey.com/support/inde ... ticleid=59
Lowlander (MediaMonkey user since 2003)
Lowlander
 
Posts: 43393
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Next

Return to Need Help with Addons?

Who is online

Users browsing this forum: Hdhntr23, Peke and 11 guests