Possible to run script on scan or import to library?

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey for Windows 4.

Moderators: Gurus, Addon Administrators

Spingle
Posts: 2
Joined: Mon Mar 03, 2014 6:07 am

Possible to run script on scan or import to library?

Post by Spingle »

Hi,

In the scripttype options I can't see a way to trigger a particular script (or custom script) when I import a track into the library.

Say, for example, I wanted to copy the sample rate into a custom tag for every file that I import, I can easily write a script to do this but I need to manually select it from the menu for the tracks I want to tag. Can I do this automatically by setting the script up in a particular way. I found the options > Library screen but I can't work out how to customise this screen and add my own tick box (if this is the best way to do it).

Thanks for any help.
Spingle
Last edited by Lowlander on Mon Mar 03, 2014 10:05 am, edited 1 time in total.
Reason: Moved to correct forum
Spingle
Posts: 2
Joined: Mon Mar 03, 2014 6:07 am

Re: Possible to run script on scan or import to library?

Post by Spingle »

Thank you to Lowlander for moving this question into the appropriate place.

Having found where to look I have now found the answer to my own question.

Use the OnTrackAdded or even the OnTrackListFilled events.

Cheers.
Post Reply