Posted: Fri Oct 13, 2006 9:00 am
Where would you get the previous value from?
The Music Manager for Serious Collectors
http://www.mediamonkey.com/forum/
tj_junk
Posted: Thu Apr 13, 2006 6:33 pm Post subject: Run "Auto-Organize" or "Tag from Filename&quo
--------------------------------------------------------------------------------
I would like to be able to run "Auto-Organize" or "Tag from Filename" within a script.
[...]
Steegy
Posted: Thu Apr 13, 2006 10:10 pm Post subject:
--------------------------------------------------------------------------------
I think a MediaMonkey'ed replacement for the "web page based track changes preview" (as used in Case Checker, and several other scripts) would be nice.
As I see it, a script would call a built-in window with a listview (like Auto-Organise and Auto-Tag from Filename) and give it a "current" and a "new" list (of songs) as input.
In the dialog, the user would see the changes marked in yellow (differences between "current" and "new"/"result"), and would be able to change the results.
When the user clicks OK to accept and close the dialog, the script would get a "result" list of songs back.
With these results, songs could be renamed or maybe something else could be done, within the calling script.
So basically, I want to say that tj_junk is not the only one with such idea.
It would be a nice thing to have, but it's certainly not "urgent" as I see it.
It would make the preview functionality/code in tag-changing scripts *much* cleaner (most such scripts contain 90% standard preview code, and only about 10% of real programming!) and adaptable (let the user show the columns he/she wants), _and_ the results can actually be modified too.
Code: Select all
[AdvancedOptions]
Test.Enabled=Bool|False
Test.Number=Int|100%0%9999999
Test.Text=String|This is a piece of text
_ScriptPath.Test=C:\Program Files\MediaMonkey253RC4\Scripts\Auto\AdvancedOptions.vbsCode: Select all
Dim ScriptName : ScriptName = "Test"
Call SetSettingValueOptional(ScriptName, "Enabled", "Bool", "False")
Call SetSettingValueOptional(ScriptName, "Number", "Int", CreateIntSettingValue("100", "0", ""))
Call SetSettingValueOptional(ScriptName, "Text", "String", "This is a piece of text")Code: Select all
Dim pEnabled : pEnabled = GetSettingString("Test", "Enabled")Code: Select all
Dim pEnabled : pEnabled = SetSettingValueOptional(ScriptName, "Enabled", "Bool", "False")
Makes sense, I'll see what can we do about it for the next version.@jiri: Wim needs a way to change the displayed album art image displayed in the Album Art panel, through a script (e.g. to automically go through all its attached album art images, if a file is selected)
They already have this event, doesn't it work for you?I think this has been asked before, but I'd like OnChange events for the Edit and SpinEdit (and maybe other) controls.
Would it mean to include some 'xxx.vbs' file with MM installer so that other scripts could include it? In such case it would probably make sense to do so...Is this interesting enough to include this "now script thing" in the MM program itself?
Ah ok. They weren't documented so I didn't know they already existed.They already have this event
Code: Select all
Script.RegisterEvent TestEdit, "OnChange", "TestEdit_OnChange"
Sub TestEdit_OnChange(Edit)
MsgBox "123"
End Sub
Code: Select all
SDB.MainTracksWindow.RemoveSelectedTracksCode: Select all
SDB.MainTracksWindow.RemoveTrack( index )