ExternalTools v1.4 [MM2+3+4]

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

Postby phunkydizco » Fri Oct 05, 2007 8:54 am

Is it possible to provide an unquoted parameter for the folder path where the mp3 file is stored?

I want to launch an external tool with the folder path and Folder.jpg as filename.

If you would add a parameter e.g. %F for folder path, I could launch the external tool like this:

externaltool.exe "%F\Folder.jpg"
phunkydizco
 
Posts: 42
Joined: Sun May 22, 2005 10:56 am

Postby Steegy » Fri Oct 05, 2007 10:39 am

Sure, inside the source code within "Function Fillin", add
Code: Select all
    Fillin = Replace(Fillin, "%F", Left(ThePath, InStrRev(ThePath, "\") - 1), 1, -1, 1)
at the end.
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
Steegy
 
Posts: 3448
Joined: Sat Nov 05, 2005 7:17 pm
Location: Belgium

Postby phunkydizco » Fri Oct 05, 2007 11:48 am

Thank you. That works perfect.
phunkydizco
 
Posts: 42
Joined: Sun May 22, 2005 10:56 am

Postby rogerr » Thu Dec 27, 2007 9:18 am

Can anyone help with patching this for MM 3.0 final? I get an error on this line:

Dim SDB : Set SDB = CreateObject("Scripting.SDBApplication")
rogerr
 
Posts: 101
Joined: Sat Nov 15, 2003 8:02 pm

Postby rogerr » Sat Jan 12, 2008 8:41 am

Anybody? Steegy? :roll:
rogerr
 
Posts: 101
Joined: Sat Nov 15, 2003 8:02 pm

Postby justin_f » Sat Jan 12, 2008 2:12 pm

Great tool, I've been using it to launch the guitar tab of a song directly from the mp3, which is awesome.

One question though, is there a way to use wildcards in the parameters field?
My issue is that I use a tab software called Guitar Pro, and my files aren't in a uniform file format. Some are .gp3, some are .gp4, and some are .gp5. Currently I have the parameter set as %W, and I put the path of the tab in the Custom 3 field. This is obviously going to take a while to set up completely with a large number tab files. I'd rather be able to do something like %A - %S.gp* and have that work, but I tried and it doesn't seem to.

Anybody have any suggestions?
justin_f
 
Posts: 92
Joined: Thu Nov 22, 2007 11:41 am
Location: Valpo, IN

Postby Killjoy12 » Wed Jan 16, 2008 12:17 am

I hacked an unexpected use for this tool. I wanted to be able to select any of my songs and launch a web site in an external browser for that artist. So I found a way to hack the use of this script to do just that.

Here's a sample for anyone interested. Its the mediamonkey.ini file entries for two external tools: one to go to the amazon mp3 download page, and another to launch wikipedia, both in firefox. The key is to double-double quote the url so that it is escaped correctly in vbscript. It seems to work correctly with most artist names.

Might be of some use to someone.

Code: Select all
[ExternalTools]
Name1=Amazon MP3s - Artist
Description1=Amazon MP3 Downlds by Artist
ProgramPath1=C:\Program Files\Mozilla Firefox\firefox.exe
CLArguments1=""http://www.amazon.com/s/ref=nb_ss_dmusic?url=search-alias%3Ddigital-music&field-keywords=%A""
ShortcutKeys1=
IsVisible1=True
AppendTracks1=1
IconPath1=C:\Program Files\Mozilla Firefox\firefox.exe


Name2=Wikipedia - Artist
Description2=Wikipedia Artist Link
ProgramPath2=C:\Program Files\Mozilla Firefox\firefox.exe
CLArguments2=""http://en.wikipedia.org/wiki/%A""
ShortcutKeys2=
IsVisible2=True
AppendTracks2=1
IconPath2=C:\Program Files\Mozilla Firefox\firefox.exe
Killjoy12
 
Posts: 72
Joined: Mon Jun 11, 2007 11:33 pm

Postby SpritHansi » Wed Jan 16, 2008 4:21 am

If I understand correct, I can use this script to get MM3 play my musicvideos in an external player like Winamp?
But how? I've chose Winamp in the setup.
I want to add musicvideos in the playlist, and use Winamp to play them, anf then return to MM3. Is this possible?
Regards
SpritHansi
SpritHansi
 
Posts: 57
Joined: Sun Jun 18, 2006 4:43 pm

Postby gege » Fri Jan 18, 2008 12:17 pm

Steegy,
I've setup an ExternalTool for MP3gain to apply Album gain on selected tracks (MM leveling is track based only...), like you can see in this picture:
Image

As you can see, I pass the file list to MP3gain with the <%P: > loop.
Works a treat for MOST albums, but for SOME it doesn't. The only thing I could notice is these problematic albums have a high track count or long album names (or both), which results in a very long string passed to the external program as parameter. (But see... I'm just guessing here. I can't prove this...)
See this example album:
Image

It gives me this error:
Image

Could this be an script bug? Or do you think it is a problem with the external program itself?



This made think of a possible workaround.
You could provide another mask: %F which would expand only to the "Folder" where the song is located, not the complete path (Folder + Filename). Oh, and %N could be just the filename, for instance.

With this new mask, I could set up something like this:
C:\Arquivos de programas\MP3Gain\mp3gain.exe /a /k /p %F\*.mp3
(I've tested it in the command prompt and it works fine)
gege
 
Posts: 844
Joined: Tue Sep 05, 2006 2:10 pm
Location: Brazil

Re: ExternalTools v1.3 [MM2+3]

Postby gumbootiner » Wed Mar 04, 2009 1:14 am

This looks like it'll come in handy, I use MP3Tag for pre-cleaning before i auto tag with MM3, however I can't seem to get it to work right. It shows up in the context menu and opens mp3tag but not for the current folder, what parameters would i set to do this? Thanks!!
gumbootiner
 
Posts: 8
Joined: Tue Feb 10, 2009 1:31 am

Re: ExternalTools v1.3 [MM2+3]

Postby Eyal » Sun Apr 19, 2009 6:01 pm

(vanished)
Last edited by Eyal on Mon May 11, 2009 3:33 pm, edited 1 time in total.
Skins for MediaMonkey: Cafe, Carbon, Helium, Spotify, Zekton. [ Wiki Zone ].
Eyal
 
Posts: 3052
Joined: Sun Jun 26, 2005 9:27 am
Location: Québec

Re: ExternalTools v1.3 [MM2+3]

Postby Glakke » Sun May 10, 2009 8:57 am

Hey, I just started using this Script. Works great!
However, I'm wondering if there's way do open with a Tool on specific file-extensions? For example, when I open a file with the extension .wav, I want to use Tool X. Is this possible?
Glakke
 

Re: ExternalTools v1.3 [MM2+3]

Postby ronnzz » Mon May 11, 2009 2:10 pm

thanks for giving much better explanation about ExternalTools v1.3 [MM2+3]
ronnzz
 
Posts: 1
Joined: Mon May 11, 2009 12:54 pm

Re: ExternalTools v1.3 [MM2+3]

Postby Alterx » Mon Jul 06, 2009 4:06 pm

Hi.

I'm tring to use this tool with a program called Album Art downloader (excellent program to find Album Arts). I'd like to open the program and give them the artist and the title of the album to retrieve the images i want.

Unfortunately, even if i select "run once" and i select just one track in MM, every time i run the External tool script he opens 8 istances of Album Art Downloader with the correct parameters... but 8 it's just a little beyond my needs... i should say :).

Is there anyone who can help me to solve this strange behaviour?

thanks in advance.

Bye

Andrea
Alterx
 
Posts: 19
Joined: Fri Jul 03, 2009 2:12 pm

Re: ExternalTools v1.3 [MM2+3]

Postby ducati » Tue Aug 04, 2009 12:01 pm

Excellent Tool!!!!

I too am having multiple instances of the external program load. Anyway to stop this?
ducati
 
Posts: 7
Joined: Mon Aug 03, 2009 11:04 am

PreviousNext

Return to Need Help with Addons?

Who is online

Users browsing this forum: No registered users and 12 guests