Community Forums Archive

Go Back

Subject:Exit from SF inside of script
Posted by: mmulert
Date:5/14/2008 10:28:46 AM

I have a working C# script and want it to shut down Sound Forge whe nit is finished.

Is there a command available for this?

Also, I ma new to Sound Forge scripting. Is there a reference doc which describes the SF Object Model?

Thanks in advance.

-Mark

Subject:RE: Exit from SF inside of script
Reply by: _TJ
Date:5/14/2008 6:42:16 PM

As previously discussed in this forum.


using System.Diagnostics;
....

Process curr = Process.GetCurrentProcess();
curr.CloseMainWindow();


Is how a script can close Sound Forge.

The documentation for the SF Object model is part of the Scripting SDK. look for a file called "Sound Forge Script API.chm"

tj


Go Back