Hi Phillip,
Thank you for the suggestion. The script is different from the macro -- I made some improvements to the version posted on the Samples page.
We should be able to update the macro version of the script for the next release of SAM.
Best regards,
Paul.