using System;
using System.IO;
using System.Windows.Forms;
using SoundForge;
using System.Collections;
using System.Collections.Generic;
public class EntryPoint
{
public void Begin(IScriptableApp app)
{
if (app.CurrentFile.Length > app.CurrentFile.SecondsToPosition(740.8))
{
app.CurrentFile.Markers.AddMarker(app.CurrentFile.SecondsToPosition(740.8), "12.20 minutes");
}
}
public void FromSoundForge(IScriptableApp app)
{
ForgeApp = app; //execution begins here
app.SetStatusText(String.Format("Script '{0}' is running.", Script.Name));
Begin(app);
app.SetStatusText(String.Format("Script '{0}' is done.", Script.Name));
}
public static IScriptableApp ForgeApp = null;
public static void DPF(string sz) { ForgeApp.OutputText(sz); }
public static void DPF(string fmt, params object[] args) { ForgeApp.OutputText(String.Format(fmt, args)); }
} //EntryPoint
script adds 1 marker... about 12 minutes