Does a "Add Current Song to Playlist" Script Actually Exist?

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Does a "Add Current Song to Playlist" Script Actually Exist?

Re: Does a "Add Current Song to Playlist" Script Actually Ex

by ZvezdanD » Sat Jan 21, 2012 10:20 pm

There is the new Add Currently Playing/Selected Track(s) to Playlist add-on.

EDIT: Oh well... I saw just now that this thread has two pages. :roll: Just spent my time writing this add-on unnecessarily. Anyway, it has its installation package so it would be easier to install and has toolbar buttons for those functions, beside of the hotkeys. Sorry to all.

Re: Does a "Add Current Song to Playlist" Script Actually Ex

by Onweerwolf » Tue Nov 15, 2011 4:07 pm

Eyal wrote:
Onweerwolf wrote:So Eyal, could you help me out here in how to change the script so it doesn't send the currently playing song but the currently selected song (from the library) to the playlist instead?
Follow the "don't panic" steps above, but with the following CopyToMyPlaylist sub:

Code: Select all

Sub CopyToMyPlaylist
   dim PlayList : Set PlayList = SDB.PlayListbyTitle("PLname")
   Dim list, t : Set list = SDB.SelectedSongList
    
   If list.Count=0 Then
      t = SDB.MessageBox("No track(s) were selected.", mtInformation, Array(mbOK))
   Else
      PlayList.AddTracks(list)
   End If
End Sub
You can also change DisplayName and Description lines in the Script.ini section.

:~)
Thank you so very much Eyal!

I just got a chance to test it and it works perfectly! :D

Re: Does a "Add Current Song to Playlist" Script Actually Ex

by nynaevelan » Mon Nov 07, 2011 8:42 am

Sorry I haven't followed this forum in a few days I was out of town but to add a little info, I use the Right Click for Scripts script also and I used that to create a toolbar button for the script so for me it is just a click away from use. But as Eyal stated a hotkey will do the trick also. Though I would also be interested in how to use a second copy of it for a copy to selected track instead of playing track.

Re: Does a "Add Current Song to Playlist" Script Actually Ex

by Eyal » Mon Nov 07, 2011 2:08 am

Onweerwolf wrote:So Eyal, could you help me out here in how to change the script so it doesn't send the currently playing song but the currently selected song (from the library) to the playlist instead?
Follow the "don't panic" steps above, but with the following CopyToMyPlaylist sub:

Code: Select all

Sub CopyToMyPlaylist
   dim PlayList : Set PlayList = SDB.PlayListbyTitle("PLname")
   Dim list, t : Set list = SDB.SelectedSongList
    
   If list.Count=0 Then
      t = SDB.MessageBox("No track(s) were selected.", mtInformation, Array(mbOK))
   Else
      PlayList.AddTracks(list)
   End If
End Sub
You can also change DisplayName and Description lines in the Script.ini section.

:~)

Re: Does a "Add Current Song to Playlist" Script Actually Ex

by Onweerwolf » Sun Nov 06, 2011 9:22 pm

So Eyal, could you help me out here in how to change the script so it doesn't send the currently playing song but the currently selected song (from the library) to the playlist instead?

Re: Does a "Add Current Song to Playlist" Script Actually Ex

by WCityMike » Sun Nov 06, 2011 9:00 pm

Come here, you.

*mwah*

May you live to be 100 years, with one extra year to repent!

Re: Does a "Add Current Song to Playlist" Script Actually Ex

by Eyal » Sun Nov 06, 2011 8:46 pm

Firstly, you don't need to click any perticular track when right-clicking-menu. Just right-click in anywhere in NowPlaying pane.
Secondly, don't panic!. It's possible to assign a Hotkey to this script if you follow these steps:
  • Edit Mediamonkey\Scripts\Auto\CopytoPlayList.vbs file using a text editor.
    - Add this section as is at the end of the file and replace "PLname" with your target Playlist name (same as previous Sub):

    Code: Select all

    Sub CopyToMyPlaylist
       dim PlayList : Set PlayList = SDB.PlayListbyTitle("PLname")
       playlist.addtrack(sdb.player.currentsong)
    End Sub
  • Save the file.
    -
  • Edit Mediamonkey\Scripts\Scripts.ini file using a text editor.
    - Add this section as is at the end of the file:

    Code: Select all

    [CopytoPlayList]
    Filename=Auto\CopytoPlayList.vbs
    Procname=CopyToMyPlaylist
    Order=10
    DisplayName=Copy (currently playing) to Playlist
    Description=Copy currently playing track to predifed playlist
    Language=VBScript
    ScriptType=0
  • Save the file.
  • Close and Restart MediaMonkey.
Now the script is also available through Tools|Scripts menu. You can test it to see if it's working.

--> Now assign a Hotkey to this script:
  • Tools|Options|General|Hotkeys
    - Action = General: Execute script: Copy (currently playing) to Playlist
    - Hotkey = (your hotkey) ex.: CTRL+ALT+B
  • Click APPLY and OK.
And voila, should work as desired.

Eyal :~)

Re: Does a "Add Current Song to Playlist" Script Actually Ex

by WCityMike » Sun Nov 06, 2011 7:32 pm

Well, I redownloaded the script, re-edited it, re-copied it into place, and this time it works.

Unfortunately, it's almost equally as inconvenient as the built-in functionality of the Playlist button. Instead of:

(a) clicking into MediaMonkey
(b) clicking the song in Now Playing with the left mouse key
(c) clicking the Playlist button
(d) selecting the "Exercise" playlist

I now have:

(a) clicking into MediaMonkey
(b) clicking the song in Now Playing with the right mouse key
(c) selecting the "Add Now Playing to Playlist" menu option

Is there really no way to assign this to a keystroke? When I looked for an answer to this, I saw probably a good 30-50 individual threads all seeking the ability to, with a keystroke, add the now-playing track to a playlist.

No one's ever been able to accomplish that goal?

Re: Does a "Add Current Song to Playlist" Script Actually Ex

by Eyal » Sun Nov 06, 2011 5:49 pm

WCityMike wrote:As far as I can tell, the "auto" script cited above does not work.
It's working fine for me, on MM 3.2.

Make sure that the target playlist actually exist. (The PL name that is specified in the script at line 29):

Code: Select all

    dim PlayList : Set PlayList = SDB.PlayListbyTitle("EyaL")
You may need to manually create this empty playlist in the Library->Playlists node first.

Re: Does a "Add Current Song to Playlist" Script Actually Ex

by WCityMike » Sun Nov 06, 2011 2:22 pm

Okay, to reiterate:

As far as I can tell, the "auto" script cited above does not work.

The original hope was to be able to find a script that would allow one to assign a keystroke to it (and this is not only my hope but the hope echoed by tens upon tens of similar threads, as the search engine seems to yield) ... whether or not that was the preceding 'auto' script, which, as said, does not seem to work.

Re: Does a "Add Current Song to Playlist" Script Actually Ex

by nohitter151 » Sun Nov 06, 2011 1:12 pm

WCityMike wrote: (Additionally, I must admit my sincere hope was to get something that I could assign to a keystroke ... and it doesn't show up in the "Script" area of the Hotkeys preference.)
That option is not available for "auto" scripts, only for regular ones.

Re: Does a "Add Current Song to Playlist" Script Actually Ex

by Onweerwolf » Sun Nov 06, 2011 12:26 pm

That's not what we want. We want to have a hotkey assigned to a function that will copy the now playing or currently selected song to a predefined playlist.

Re: Does a "Add Current Song to Playlist" Script Actually Ex

by NextBestGuest » Sun Nov 06, 2011 12:18 pm

Or what about: Righclick song, "Send To/Playlist/..whateveryouwant.. :wink:
Yes, i will stop reply now :lol:

Re: Does a "Add Current Song to Playlist" Script Actually Ex

by BestGuest » Sun Nov 06, 2011 12:14 pm


Top