Playlist Send to... example please

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

Moderator: Gurus

Playlist Send to... example please

Postby chrisjj » Sat May 08, 2010 10: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?

Thanks.
Chris . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2009-05-18: Using MM V3 Gold skinned or non-skinned on Windows XP SP2 plus WMF11
chrisjj
 
Posts: 4369
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Playlist Send to... example please

Postby rovingcowboy » Sun May 09, 2010 7:27 am

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 viewtopic.php?f=9&t=16724 for some help check on Monkey's helpful messages at viewtopic.php?p=44008#44008 MY SYSTEMS.1.Xp pro sp3, vers 3.2 jukebox, pcchips mb. amd sem... built by me) 2.WinXP pro sp3, vers 2.5.5 and vers 3.2 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.WinXp pro sp 3 version 2.5 and version 3.2 work gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 4.Dell demension, winxp pro sp3, mm3.5 spare jukebox. 5.WinXp pro sp3, vers 2.5.5, moms computer. Sony vaio.)6. Motorola Photon. Android 4.1.2
rovingcowboy
 
Posts: 13396
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)

Re: Playlist Send to... example please

Postby chrisjj » Sun May 09, 2010 10:22 am

No, I want a script that operates on the right-clicked playlist.
Chris . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2009-05-18: Using MM V3 Gold skinned or non-skinned on Windows XP SP2 plus WMF11
chrisjj
 
Posts: 4369
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Playlist Send to... example please

Postby trixmoto » Sun May 09, 2010 2:55 pm

Try my Randomise Playlist script.
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Re: Playlist Send to... example please

Postby chrisjj » Sun May 09, 2010 7:56 pm

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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2009-05-18: Using MM V3 Gold skinned or non-skinned on Windows XP SP2 plus WMF11
chrisjj
 
Posts: 4369
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Playlist Send to... example please

Postby trixmoto » Mon May 10, 2010 3:27 am

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.
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Re: Playlist Send to... example please

Postby chrisjj » Mon May 10, 2010 6:15 am

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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2009-05-18: Using MM V3 Gold skinned or non-skinned on Windows XP SP2 plus WMF11
chrisjj
 
Posts: 4369
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Playlist Send to... example please

Postby chrisjj » Tue May 11, 2010 6:22 am

(Asking again more prominently...)
Chris . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2009-05-18: Using MM V3 Gold skinned or non-skinned on Windows XP SP2 plus WMF11
chrisjj
 
Posts: 4369
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Playlist Send to... example please

Postby trixmoto » Wed May 12, 2010 3:23 am

No, it doesn't exist, that's why we use "SDB.PlaylistByTitle" and don't always get the right one.
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Re: Playlist Send to... example please

Postby chrisjj » Wed May 12, 2010 4:42 am

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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2009-05-18: Using MM V3 Gold skinned or non-skinned on Windows XP SP2 plus WMF11
chrisjj
 
Posts: 4369
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Playlist Send to... example please

Postby Lowlander » Wed May 12, 2010 12:08 pm

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?
Lowlander
 
Posts: 31643
Joined: Sat Sep 06, 2003 5:53 pm

Re: Playlist Send to... example please

Postby chrisjj » Wed May 12, 2010 1:21 pm

> 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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2009-05-18: Using MM V3 Gold skinned or non-skinned on Windows XP SP2 plus WMF11
chrisjj
 
Posts: 4369
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Playlist Send to... example please

Postby Peke » Wed May 12, 2010 5:20 pm

@Chris
Search Mantis I'm certain that I filed similar wish already.
Best regards,
Pavle
MM Core Developer and Fan (check HAPPYMONKEYING Site)
Image
Image
Peke
 
Posts: 7546
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia

Re: Playlist Send to... example please

Postby chrisjj » Thu May 13, 2010 4:00 pm

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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2009-05-18: Using MM V3 Gold skinned or non-skinned on Windows XP SP2 plus WMF11
chrisjj
 
Posts: 4369
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Playlist Send to... example please

Postby Peke » Thu May 13, 2010 6:14 pm

Have you checked Resolved?

? Search link ?
Best regards,
Pavle
MM Core Developer and Fan (check HAPPYMONKEYING Site)
Image
Image
Peke
 
Posts: 7546
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia

Next

Return to Addons developer forum

Who is online

Users browsing this forum: No registered users and 0 guests