One of Winamp’s best features is the ability to scan and update music from designated music folders into your library automatically. This feature is very useful; especially since I’m always updating my music collection and adding music to a “to review” folder. My initial frustration with SAM Broadcaster was its inability to perform this function through its media library. Through some searching and asking on the Spacial Audio forms, I found that in order to replicate Winamp’s feature, I must create a script through SAM’s PAL Scripting functionality. In order to do this I had to use the Rescan procedure and the SUBDIR function. In this post I will show you how to create this script.
PAL Scripts are text files that contain commands for SAM to run. Scripts are manages through the PAL Script window found in Desktop B. Creating a script is simple, first open notepad (or your favorite text editor) and save a file with any name you would like to use, to make your life easier you may want to save it with the .pal exentision. In this example you can name the script “SAM Broadcaster Rescan.pal”. Next, in the PAL Script window, click on the “+” and then click on the folder icon to select our script file. You may also want to select “Automatically Start Script” so the script will execute when you first open SAM Broadcaster. After you click the OK button, the script will appear in the PAL Script window. Now we want to edit the script and include the line that will update the music library. Open the script by double clicking or by using the edit icon (the fourth icon from the left), and an empty window will appear with line numbers along the left hand side. Inside of this window, on line 1, enter the following code:
You must point SAM to your music directory by replacing the c:music portion of the code. On my system, my music folder is on the G drive in a folder aptly titled ‘music’. My command will look as follows:
If you are running Windows Vista and you use the the default music director for you music, your path would be c:users<your user name>Music. SAM will scan the music folder and all of the sub-folders and automatically add the music files to the music library. If you place all of your music in one folder, you can replace the SUBDIR command with the DIR command in exactly the same manner:
After placing the command, save the file (by going to File -> Save) then click on the Run button to execute the scripts command. In my experience, this command may cause SAM to be a bit unresponsive when running the script, especially if you have a very large music library. This may cause SAM to lock up for a moment (less than a minute), as this process of adding new music is relatively fast. One option is to separate your music into different sub-folders and run the command over each individual sub-folder. I organize my music by Genre, here is an example of how this script would look like:
If your a bit patient with this script, this added feature through PAL Scripting will alleviate one of the major shortfalls of SAM Broadcaster.