Last Update: 5/25/2008
While working on a script to import playlists from various data sources (text file, xml, HTML table, etc), I discovered that I needed a way to replace songs in playlists when the import process didn't choose the song I wanted. I searched the forums and found a few posts that mentioned a replacement script but no actual working scripts.
Big thanks go out to trixmoto. I know I never directly asked you for help but, almost every time I had a question, you had already given the answer in the forum (or I used one of your scripts as a guide). The new delete functionality uses your code as well.
Also, Bex's SQL Viewer script was a huge help in testing queries.
Thanks to Nyn for his testing and suggestions!
Description:
The script allows you to select songs and replace them in the same position within selected playlist(s).
Download:
PlaylistSongReplacer.mmip
Playlist Song Replacer Instructions:
1. Select the song(s) you wish to replace
2. Click the "Playlist Song Replacer" toolbar button (or select the option from the "Scripts" menu)
3. Select the playlist where the replacement should be made
4. Select the song to use as the replacement from the dropdowns in the bottom
5a. Click the "Replace" button to make the replacement. You will be prompted for confirmation before the replacement is made
5b. Click "Skip" or "Previous" to move back and forth between the selected songs
5c. Click "Cancel" to exit the script without making any further changes (changes that have already been made will not be undone)
Delete Songs Button
1. Select the songs you wish to delete
2. Click the delete button on the toolbar
3. If the song(s) exist in a playlist, the Playlist Song Replacer form will be launched.
4. When finished, you will be prompted to delete the songs from the computer as well as the library.
NOTES:
* I tried to use tooltips in order to make the script be as user friendly as possible but let me know if you have any questions.
Screenshot:
To do:
Better icons? I'm no artist...
Release History:
1.0
* Added new "delete" toolbar button which will check playlists prior to deleting songs (see instructions above).
* Added option sheet:
- Hide toolbar buttons
- Set defaults for replacement form
- Auto close option
- Option to disable prompt when using the delete button
0.9.2.1 Beta 5/1/2008
* Fixed bug where replacement would always be made with the first song in the new songs list
* Added ability to replace all songs with the same song
* Improved confirmation message
* Added post-replacement message
* Changed replacement process so songs can be replaced more than once in different playlists
0.9.1.2 Beta 4/30/2008
* Changed how artists, albums and songs are queried in order to support multi-artist songs
* Added "ALL" option to Album dropdown
0.9.1 Beta 4/30/2008
* Beta release of Playlist Song Replacer