Playlist Send to... example please

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

Moderators: Gurus, Addon Administrators

chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Playlist Send to... example please

Post by chrisjj »

Can anyone point me to an example of a script that operates on a playlist and is launched by right-clicking on that playlist and clicking on a new "Send to ..." menu item?

Thanks.
Chris
rovingcowboy
Posts: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Re: Playlist Send to... example please

Post by rovingcowboy »

let me see if i can understand what you want?
by chrisjj on Sat May 08, 2010 9:02 am

Can anyone point me to an example of a script that operates on a playlist and is launched by right-clicking on that playlist and clicking on a new "Send to ..." menu item?
you want a script to pick a song from a playlist automaiticly and then it to another playlist?

or

you want to have a script run in conjunction with the now playing playlist, and when you right click and click on send to. you want that script to auto execute its commands by having the click on send to be the trigger for its auto execute, on that selected song?

not that i can do it just that i want to know cause it might be a good deal for me to use also? :D
roving cowboy / keith hall. My skins http://www.mediamonkey.com/forum/viewto ... =9&t=16724 for some help check on Monkey's helpful messages at http://www.mediamonkey.com/forum/viewto ... 4008#44008 MY SYSTEMS.1.Jukebox WinXp pro sp 3 version 3.5 gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 2.WinXP pro sp3, vers 2.5.5 and vers 3.5 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.Dell demension, winxp pro sp3, mm3.5 spare jukebox.) 4.WinXp pro sp3, vers 3.5, dad's computer bought from computer store. )5. Samsung Galaxy A51 5G Android ) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Playlist Send to... example please

Post by chrisjj »

No, I want a script that operates on the right-clicked playlist.
Chris
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Playlist Send to... example please

Post by trixmoto »

Try my Randomise Playlist script.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Playlist Send to... example please

Post by chrisjj »

trixmoto wrote:Try my Randomise Playlist script.
Thanks TM, but that script's method of accessing a playlist (Set list = SDB.PlaylistByTitle(node.Caption) can operate on the wrong playlist if there is more than one with the same child name e.g. if there is fred/child and jim/child. Do you know a fix?
Chris
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Playlist Send to... example please

Post by trixmoto »

Well I've never done it, but my thought would be to traverse to the parent node, get it's caption, and then use that for confirmation. Without looking at the API I don't know exactly how I'd do the confirmation though.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Playlist Send to... example please

Post by chrisjj »

Thanks. I would have thought the API would directly provide a playlist node's playlist object, but I can find no such property. Anyone here know if it exists?
Chris
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Playlist Send to... example please

Post by chrisjj »

(Asking again more prominently...)
Chris
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Playlist Send to... example please

Post by trixmoto »

No, it doesn't exist, that's why we use "SDB.PlaylistByTitle" and don't always get the right one.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Playlist Send to... example please

Post by chrisjj »

trixmoto wrote:No, it doesn't exist, that's why we use "SDB.PlaylistByTitle" and don't always get the right one.
OK, thanks, I'll file a wish.
Chris
Lowlander
Posts: 58632
Joined: Sat Sep 06, 2003 5:53 pm

Re: Playlist Send to... example please

Post by Lowlander »

This discussion is sufficient as a wish, just file it in Mantis in the Wishlist section and link between here and Mantis. I wonder though can you guarantee that no script, plugin, addon, user will be effected by the requested change?
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Playlist Send to... example please

Post by chrisjj »

> This discussion is sufficient as a wish, just file it in Mantis in the Wishlist section and link between here and Mantis.

OK.

> I wonder though can you guarantee that no script, plugin, addon, user will be effected by the requested change?

Good point! But the change should be just an additional method or perhaps class, so would not affect the existing API. But of course since there will be change to the code, there is teh same as always possibility of disturbing any existing unstable code.

I don't have sufficient understanding of the the API to suggest how the best solution. What would you propose? E.g. what is the best precedent in the API for referencing a node property that is an object other than a collection of tracks?
Chris
Peke
Posts: 18278
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Playlist Send to... example please

Post by Peke »

@Chris
Search Mantis I'm certain that I filed similar wish already.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Playlist Send to... example please

Post by chrisjj »

Peke wrote:@Chris
Search Mantis I'm certain that I filed similar wish already.
Thanks - I don't see it. E.g. Category: Framework: Scripts/Extensions Search playlist finds only closed/resolved.

PS Is there any way to get a link to a Mantis search?
Chris
Peke
Posts: 18278
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Playlist Send to... example please

Post by Peke »

Have you checked Resolved?

? Search link ?
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
Post Reply