I made a little script that removes all unused media from a project and then saves it. Not rocket science but I was in the habit of often switching to the Project Media tab and clicking the lightning bolt before saving, so this combines the 2 operations. It's especially useful if, like me, you tend to edit by process of elimination and don't generally have the Project Media window showing.
import System;
import System.Windows.Forms;
import ScriptPortal.Vegas;
try
{
Vegas.ResumePlaybackOnScriptExit = true;
Vegas.Project.MediaPool.RemoveUnusedMedia();
Vegas.SaveProject();
} catch (e)
{
MessageBox.Show(e);
}
Script: https://drive.google.com/file/d/0B8ftVT5A1FqQcHJTazdfUTZBVlk/view?usp=sharing
Icon:
Put the script and icon in your "C:\Program Files\VEGAS\VEGAS Pro 14.0\Script Menu\" folder.
For Vegas Pro 13, change the line ScriptPortal.Vegas to Sony.Vegas and put the script in C:\Program Files\Sony\Vegas Pro 13.0\Script Menu\.
I have customised my toolbar so it sits next to my regular save icon: