Delete And Skip 2.0
Delete And Skip 2.0
This script should be run whilst a track you don't like is playing. It will ask for confirmation, and then remove the track from Now Playing and delete it from your computer.
Skip can be created anywhere as it runs externally to MM. Call it anything you like as long as the file extension is VBS. Most people wouold chose to assign a keyboard hotkey to this script.
This script has been discussed and developed here: http://www.mediamonkey.com/forum/viewtopic.php?t=6822. This is the official release.
NEW CODE BELOW
Skip can be created anywhere as it runs externally to MM. Call it anything you like as long as the file extension is VBS. Most people wouold chose to assign a keyboard hotkey to this script.
This script has been discussed and developed here: http://www.mediamonkey.com/forum/viewtopic.php?t=6822. This is the official release.
NEW CODE BELOW
Last edited by trixmoto on Fri Oct 13, 2006 7:42 am, edited 2 times in total.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
-
- Posts: 2153
- Joined: Fri Jan 14, 2005 1:45 am
- Location: Germany
- Contact:
Because I didn't know you could!
Does SDB.Tools.DeleteTracks remove songs from the database? If not, can you from script?
Does SDB.Tools.DeleteTracks remove songs from the database? If not, can you from script?
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
New version (2.0) - more stable because it uses MM to delete the file not the file system - also means that the file is deleted from the library as well as the computer.
Code: Select all
'
' MediaMonkey Script
'
' NAME: DeleteAndSkip 2.0
'
' AUTHOR: trixmoto (http://trix.dork.com)
' DATE : 14/12/2005
'
' INSTALL: Can be run from anywhere, normally assigned to a hotkey.
'
' FIXES: File also deleted from the library
'
Set SDB = CreateObject("SongsDB.SDBApplication")
message = "Would you like to delete '"&SDB.Player.CurrentSong.Path&"'?"
If SDB.MessageBox(message, 3, Array(0,2)) = 6 Then
Set dellist = SDB.NewSongList
dellist.Add SDB.Player.CurrentSong
SDB.Player.Next
SDB.Tools.DeleteTracks dellist,False,1
Set dellist = Nothing
End If
Set SDB = Nothing
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
-
- Posts: 2153
- Joined: Fri Jan 14, 2005 1:45 am
- Location: Germany
- Contact:
After I posted I decided that I'd test it myself, and it does. It deletes it from now playing, the library and the computer. A much more stable and tidy method than the way I was doing it - cheers for pointing me towards SDB.Tools!
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
This is NOT an autoscript! It is an external script. This means that when MM is running and a track plays that you want to completely delete and skip to the next one, you should run this script by double clicking it, or using Windows Script Host.
You will also need an external program to assign a hotkey to running the script. I have it attached to one of my "quick" hardware keys along the top of my keyboard.
You will also need an external program to assign a hotkey to running the script. I have it attached to one of my "quick" hardware keys along the top of my keyboard.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
I have updated the installer to put the file in the Scripts folder, not the Auto folder. Thanks for pointing this out.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.