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

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

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

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

Hmmm...
Have you seen this topic? viewtopic.php?f=2&t=58959&hilit=send+to+playlist
BestGuest
 

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

Postby 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:
NextBestGuest
 

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

Postby 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.
Image
Onweerwolf
 
Posts: 542
Joined: Tue Dec 12, 2006 5:32 pm
Location: The Netherlands

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

Postby 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.
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?
nohitter151
 
Posts: 21458
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA

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

Postby 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.
WCityMike
 
Posts: 7
Joined: Sat Nov 05, 2011 2:13 pm

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

Postby 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.
Skins for MediaMonkey: Cafe, Carbon, Helium, Spotify, Zekton. [ Wiki Zone ].
Eyal
 
Posts: 3052
Joined: Sun Jun 26, 2005 9:27 am
Location: Québec

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

Postby 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?
WCityMike
 
Posts: 7
Joined: Sat Nov 05, 2011 2:13 pm

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

Postby 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 :~)
Skins for MediaMonkey: Cafe, Carbon, Helium, Spotify, Zekton. [ Wiki Zone ].
Eyal
 
Posts: 3052
Joined: Sun Jun 26, 2005 9:27 am
Location: Québec

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

Postby 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!
WCityMike
 
Posts: 7
Joined: Sat Nov 05, 2011 2:13 pm

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

Postby Eyal » Sun Nov 06, 2011 9:02 pm

:oops:

:wink:
Skins for MediaMonkey: Cafe, Carbon, Helium, Spotify, Zekton. [ Wiki Zone ].
Eyal
 
Posts: 3052
Joined: Sun Jun 26, 2005 9:27 am
Location: Québec

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

Postby 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?
Image
Onweerwolf
 
Posts: 542
Joined: Tue Dec 12, 2006 5:32 pm
Location: The Netherlands

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

Postby 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.

:~)
Skins for MediaMonkey: Cafe, Carbon, Helium, Spotify, Zekton. [ Wiki Zone ].
Eyal
 
Posts: 3052
Joined: Sun Jun 26, 2005 9:27 am
Location: Québec

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

Postby 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.
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
nynaevelan
 
Posts: 5540
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA

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

Postby 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
Image
Onweerwolf
 
Posts: 542
Joined: Tue Dec 12, 2006 5:32 pm
Location: The Netherlands

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

Postby 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.
Magic Nodes 4.2 (2011-07-01) RegExp Find & Replace 4.3 (2011-07-06)  Invert Selection/Select None 1.5 (2012-02-04)  Export M3Us/Create Playlists for Child Nodes 3.6.1 (2012-01-09)  Expand Child Nodes/Expand All 1.1.1 (2012-02-13)  Event Logger 2.4.1 (2012-02-06)  Filtered Statistics Report 1.5.1 (2009-10-09)  Track Redirection & Synchronization 3.4 (2012-10-08)  Restore/Synchronize Database 3.1.1 (2012-05-31)  Find Currently Playing Track 1.2 (2012-02-14)  Queue List 1.2 (2012-02-06)  Add to Library on Play 1.0 (2010-10-20)  Tree Report for Child Nodes 1.1 (2010-11-04)  Update Location of Files in Database 1.3.3 (2012-06-12)  Inherit Child Playlists 1.0 (2012-01-16)
Add Currently Playing/Selected Track(s) to Playlist 1.1.1 (2012-02-06)
ZvezdanD
 
Posts: 2590
Joined: Thu Jun 08, 2006 7:40 pm

Previous

Return to Need Help with Addons?

Who is online

Users browsing this forum: Rhiannon and 15 guests