Does a "Add Current Song to Playlist" Script Actually Exist?
Does a "Add Current Song to Playlist" Script Actually Exist?
I'm looking for a script that adds the currently playing song to a preprogrammed playlist. For my purpose, I'm doing it for songs that would be good to exercise to.
However, Google isn't my friend in this matter, nor is the board's search function -- I can find a few hundred different people who have asked after it, but I can't find a working example of it anywhere that I can just download and put in there. The closest I found was someone who said "oh, this particular function is what you'd need" to the person asking.
It looks as if a few hundred requests for such a function exist -- yet I can't seem to find a working example of it anywhere.
Yes, I've got the interim measure of the "Add to Playlist" button, but that takes what I'd like to be a background, one-keystroke solution and makes it an interrupting four-step solution (bring MM to the front, click on the active song in Now Playing so it doesn't try to add the last song, click the Playlist button, select the 'Exercise' playlist off the pull-down menu).
I'm afraid I do not have the technical expertise to write my own MediaMonkey script to fulfill this function. Would someone be willing to write such a script (in my case, the list's name is 'Exercise'), and become not only my hero but the hero of everyone who's Googling for this in the future?
However, Google isn't my friend in this matter, nor is the board's search function -- I can find a few hundred different people who have asked after it, but I can't find a working example of it anywhere that I can just download and put in there. The closest I found was someone who said "oh, this particular function is what you'd need" to the person asking.
It looks as if a few hundred requests for such a function exist -- yet I can't seem to find a working example of it anywhere.
Yes, I've got the interim measure of the "Add to Playlist" button, but that takes what I'd like to be a background, one-keystroke solution and makes it an interrupting four-step solution (bring MM to the front, click on the active song in Now Playing so it doesn't try to add the last song, click the Playlist button, select the 'Exercise' playlist off the pull-down menu).
I'm afraid I do not have the technical expertise to write my own MediaMonkey script to fulfill this function. Would someone be willing to write such a script (in my case, the list's name is 'Exercise'), and become not only my hero but the hero of everyone who's Googling for this in the future?
-
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
In the middle of this discussion forum there is a copy2playlist script, once you open the script in notepad (or similar text editor) and designate the playlist it should work for what you are looking for: http://www.mediamonkey.com/forum/viewto ... s&start=30
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
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
Hey that's useful thanks!nynaevelan wrote:In the middle of this discussion forum there is a copy2playlist script, once you open the script in notepad (or similar text editor) and designate the playlist it should work for what you are looking for: http://www.mediamonkey.com/forum/viewto ... s&start=30
Does anybody know what line I should change if I want to copy the currently selected song instead of the currently playing song?
-
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
Also, how does one install that script?
Re: Does a "Add Current Song to Playlist" Script Actually Ex
I must echo his question. I thought that saving it with a VBS extension in C:\Program Files (x86)\MediaMonkey\Scripts\ would do it, yet nothing I can do gets it to appear.
As an update, I see it in the Hotkey section, but assigning a keystroke to it does nothing when it's executed, i.e., the currently playing song isn't added to the playlist when the key is pressed.
As an update, I see it in the Hotkey section, but assigning a keystroke to it does nothing when it's executed, i.e., the currently playing song isn't added to the playlist when the key is pressed.
-
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
It's an installation package so you'd just download the .mmip file and double-click to install.Onweerwolf wrote:Also, how does one install that script?
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.
Need help? Got a suggestion? Can't find something?
Please no PMs in reply to a post. Just reply in the thread.
-
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
There's no mmip file just a piece of code.nohitter151 wrote:It's an installation package so you'd just download the .mmip file and double-click to install.Onweerwolf wrote:Also, how does one install that script?
-
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
http://www.mediamonkey.com/forum/viewto ... 30#p175277Onweerwolf wrote:
There's no mmip file just a piece of code.
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.
Need help? Got a suggestion? Can't find something?
Please no PMs in reply to a post. Just reply in the thread.
-
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
That's not the script we're talking about. It's this one:nohitter151 wrote:In the first post of the thread, there are two links to download an mmip file.Onweerwolf wrote:
There's no mmip file just a piece of code.
raybeau528 wrote:nyn, you might like this little code snippet - it copies the current playing song to a playlist. For now you'll need to edit the code for the playlist you wish to use. Potentially it could benefit by having a hot key assigned to it. I have a playlist called favorites so when I play a song I like I just right cick in the now playing window and select "Copy Current Song to PlayList". I may formalize it later but I need to fix a couple things with mmStations first. By the way, I've gotten to like mmStations in the Vertical layout - thanks for that suggestion!
Code: Select all
Option Explicit Dim UI : Set UI = SDB.UI Dim DB : Set DB = SDB.Database Dim INI : Set INI = SDB.IniFile Dim AppTitle : Apptitle = "CopytoPlayList v1.0" Sub OnStartup 'Create Save NowPlaying Menu Item Dim itm1 Set itm1 = SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_NP,0,0) itm1.Caption = "Copy Current Song to PlayList" itm1.OnClickFunc = "CopytoPlayList" itm1.UseScript = Script.ScriptPath itm1.IconIndex = 18 itm1.Visible = True End Sub 'OnStartup Sub CopytoPlayList(arg) dim PlayList : Set PlayList = SDB.PlayListbyTItle("Favorites") playlist.addtrack(sdb.player.currentsong) End Sub
-
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
http://www.mediamonkey.com/forum/viewto ... 30#p175277Onweerwolf wrote:That's not the script we're talking about. It's this one:nohitter151 wrote:In the first post of the thread, there are two links to download an mmip file.Onweerwolf wrote:
There's no mmip file just a piece of code.
raybeau528 wrote:nyn, you might like this little code snippet - it copies the current playing song to a playlist. For now you'll need to edit the code for the playlist you wish to use. Potentially it could benefit by having a hot key assigned to it. I have a playlist called favorites so when I play a song I like I just right cick in the now playing window and select "Copy Current Song to PlayList". I may formalize it later but I need to fix a couple things with mmStations first. By the way, I've gotten to like mmStations in the Vertical layout - thanks for that suggestion!
Code: Select all
Option Explicit Dim UI : Set UI = SDB.UI Dim DB : Set DB = SDB.Database Dim INI : Set INI = SDB.IniFile Dim AppTitle : Apptitle = "CopytoPlayList v1.0" Sub OnStartup 'Create Save NowPlaying Menu Item Dim itm1 Set itm1 = SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_NP,0,0) itm1.Caption = "Copy Current Song to PlayList" itm1.OnClickFunc = "CopytoPlayList" itm1.UseScript = Script.ScriptPath itm1.IconIndex = 18 itm1.Visible = True End Sub 'OnStartup Sub CopytoPlayList(arg) dim PlayList : Set PlayList = SDB.PlayListbyTItle("Favorites") playlist.addtrack(sdb.player.currentsong) End Sub
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.
Need help? Got a suggestion? Can't find something?
Please no PMs in reply to a post. Just reply in the thread.
-
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
Indeed, that's the precise problem I ran into as well.
Re: Does a "Add Current Song to Playlist" Script Actually Ex
This is an auto script, so the correct location to put it in is:
C:\Program Files (x86)\MediaMonkey\Scripts\Auto
C:\Program Files (x86)\MediaMonkey\Scripts\Auto
-
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
I'ev tried copying the code to a text editor then save it as an .vbs file and put it in the auto folder but MM gave errors when I started it after that and then it crashed.Eyal wrote:This is an auto script, so the correct location to put it in is:
C:\Program Files (x86)\MediaMonkey\Scripts\Auto
Edit; note: On a MM 4, portable installation that is.
Re: Does a "Add Current Song to Playlist" Script Actually Ex
Copied the script's text to a text editor, saved it as a VBS file in the Auto directory as instructed.
I can right-click on the track in 'Now Playing' and get an option ... but it doesn't actually do anything.
(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.)
EDIT: I'm using a non-portable installation of MM 3.2.5.1306.
I can right-click on the track in 'Now Playing' and get an option ... but it doesn't actually do anything.
(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.)
EDIT: I'm using a non-portable installation of MM 3.2.5.1306.
