Building Blocks - Save DS selections from all SD files in a folder

This script is an example of how multiple .sd compounds in a folder can be processed, and then output to multiple .msv files.
Compare the syntax here to the related script, which loops through compounds in a single multi-compound .sd file and writes out a single multi-compound .msv file:
Building Blocks - Save DS selections from multi-compound SD file.pl


Also, see how this can be used as a perl-on-server component in the following protocols:

Run Ligand Pharmacophore Mapping and save selected mapped atoms to a multi-compound .msv file

and

Run Ligand Pharmacophore Mapping and save selected mapped atoms to individual .msv files

===========================================================================================================

Save this script to a local directory or location accessible from the DS Files Explorer