This tutorial is specific to Sportscode v11. Have Hudl Sportscode, our newest product? Use these resources.
The batch rename feature allows for multiple buttons in a Sportscode code window to be renamed in one step. For example, multiple buttons in a code window can be renamed each week with the names of opposition players. Code window buttons with specified Button ID’s can be renamed based on values stored in a csv file.
Add the Batch Rename button to the code window toolbar by holding control and clicking in the code window toolbar and selecting “Customize toolbar…”
Next drag the Batch Rename button to an empty space in the code window toolbar
Setup Button ID’s in your code window so that each button you wish to rename has a specific button identifier. For example, if renaming player buttons use Button IDs such as “p01”, “p02”, “p03” etc.
Next create a .csv file that lists the button IDs along with the associated name changes. The first column of the .csv file should contain a list of all the Button IDs in your code window. The remaining columns then specify the rename options for your buttons. The first row contains the name of the rename grouping you will see when you select the batch rename button in your code window.
In this example, when the “Bulldogs” option is selected, the buttons with IDs of “p01” through to “p05” will be renamed to “bulldogs player 1” through to “bulldogs player 5”.
Name this file “batch_rename.csv” and save it to your ~/Documents/Sportscode User Data/code_window folder. Create this code_window folder if it does not already exist. Quit and relaunch Sportscode.
To rename the buttons in your code window, click on the Batch Rename button in your code window toolbar and select the group rename option you wish to apply.
The CSV file is cached after the first time you use this feature. If you want to reload the CSV file from the disk, hold down OPTION when clicking on the “Batch Rename” button. This is handy when you are testing or adding items to the CSV file as you go.