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

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

NextBestGuest

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

Post by NextBestGuest »

Or what about: Righclick song, "Send To/Playlist/..whateveryouwant.. :wink:
Yes, i will stop reply now :lol:
Onweerwolf
Posts: 714
Joined: Tue Dec 12, 2006 5:32 pm
Location: The Netherlands

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

Post by Onweerwolf »

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.
Image
nohitter151
Posts: 23640
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA
Contact:

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

Post by nohitter151 »

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.
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?

Please no PMs in reply to a post. Just reply in the thread.
WCityMike
Posts: 7
Joined: Sat Nov 05, 2011 2:13 pm

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

Post by WCityMike »

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.
Eyal
Posts: 3126
Joined: Sun Jun 26, 2005 9:27 am
Location: Québec
Contact:

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

Post by Eyal »

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.
Skins for MediaMonkey: Cafe, Carbon, Helium, Spotify, Zekton. [ Wiki Zone ].
WCityMike
Posts: 7
Joined: Sat Nov 05, 2011 2:13 pm

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

Post by WCityMike »

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?
Eyal
Posts: 3126
Joined: Sun Jun 26, 2005 9:27 am
Location: Québec
Contact:

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

Post by Eyal »

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 :~)
Skins for MediaMonkey: Cafe, Carbon, Helium, Spotify, Zekton. [ Wiki Zone ].
WCityMike
Posts: 7
Joined: Sat Nov 05, 2011 2:13 pm

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

Post by WCityMike »

Come here, you.

*mwah*

May you live to be 100 years, with one extra year to repent!
Eyal
Posts: 3126
Joined: Sun Jun 26, 2005 9:27 am
Location: Québec
Contact:

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

Post by Eyal »

:oops:

:wink:
Skins for MediaMonkey: Cafe, Carbon, Helium, Spotify, Zekton. [ Wiki Zone ].
Onweerwolf
Posts: 714
Joined: Tue Dec 12, 2006 5:32 pm
Location: The Netherlands

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

Post by Onweerwolf »

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?
Image
Eyal
Posts: 3126
Joined: Sun Jun 26, 2005 9:27 am
Location: Québec
Contact:

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

Post by Eyal »

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.

:~)
Skins for MediaMonkey: Cafe, Carbon, Helium, Spotify, Zekton. [ Wiki Zone ].
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

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

Post by nynaevelan »

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.
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
Onweerwolf
Posts: 714
Joined: Tue Dec 12, 2006 5:32 pm
Location: The Netherlands

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

Post by Onweerwolf »

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
Image
ZvezdanD
Posts: 3271
Joined: Thu Jun 08, 2006 7:40 pm

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

Post by ZvezdanD »

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.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
Post Reply