System information
Using Scripting
You can use scripting to streamline repetitive tasks, integrate with  external applications, and implement 
customized features.
From the Tools menu, choose Scripting  and choose a command from the submenu.
You can find the scripting API (application programming interface) and   sample scripts in the Extras folder 
of the Vegas Pro  application disc or on our Web site: 
http://www.sonycreativesoftware.com/download/step1.asp?CatID=15. For more information about 
scripting, please  check out the Vegas Pro scripting  forum: 
http://www.sonycreativesoftware.com/forums/ShowTopics.asp?ForumID=21.
To use scripts that were created for Vegas Pro  4.0 software, you'll need to revise the script's namespace 
from SonicFoundry.Vegas  to Sony.Vegas. For example, the line that includes  "import 
SonicFoundry.Vegas;" should be changed to "import Sony.Vegas;" before running the script.
Scripts can pose a security risk to your computer. A script has  the power to delete files, read files, write 
files, execute programs,   access the Internet, access files on your network, and so on. Always examine  
the contents of a script before running it. If you don't understand the  script, do not run it unless it 
comes from a trusted source. In general,  take the same precautions you would take for any program 
you download  from the Internet or receive in an e-mail attachment.
J# is not supported in .NET 4.0. If you need to use JScript scripts, please install the .NET 2.0/3.5 
runtime libraries.
To install, choose Programs and Features, choose Turn Windows features on or off, and then select 
the .NET Framework 3.5 (includes .NET 2.0 and 3.0) check box.
After installing .NET, please restart Vegas Pro.
Running a script
1.  From the Tools menu, choose Scripting.
2.  Choose a script from  the submenu or choose Run   Script from the submenu to browse to the script 
file (.vb or .js)  you want to run.
Adding scripts to the Scripting menu
When you start the program, Vegas Pro  looks at the Script Menu folder in the Vegas Pro  program folder to 
determine which scripts appear in the Scripting submenu.  This folder is C:\Program  Files\Sony\Vegas 
Pro\12.0\Script  Menu by default.
1.  Add or delete scripts in the  Script Menu folder to change the contents of the submenu.
To prevent duplication of script files, you      can use shortcuts in the Script Menu folder.
Chapter 31
USING SCRIPTING561










