my newest script

xman_charl wrote on 12/25/2022, 2:55 PM

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

Comments

william-block wrote on 12/26/2022, 6:08 AM

My SW got updated with this and now my Sound Forge does not work anymore. Is there a way to go back to the previous version?

 

emmrecs wrote on 12/26/2022, 6:36 AM

@william-block

What @xman_charl posted is NOT an update to SF, but rather a script which he has created to add a marker.

So exactly which update have you installed to SF?

Jeff
Forum Moderator

Win 11 Pro 64 bit, Intel i7 14700, 32 GB RAM, NVidia RTX 4060 and Intel UHD770 Graphics, Audient EVO 16 audio interface, VPX, MEP, Music Maker, Vegas Pro, PhotoStory Deluxe, Photo Manager Deluxe, Xara 3D Maker 7, Samplitude Pro X7 Suite, Reaper, Adobe Audition 3, CS6 and CC, 2 x Canon HG10 cameras, 1 x Canon EOS 600D, Akaso EK7000 Pro Action Cam

rraud wrote on 12/26/2022, 10:12 AM

Seasons greetings @william-block, I would try resetting SF. If that does not help, the previous build's (unpacked) installer may still be in your 'Documents> Magix Downloads' folder for re-installation.. But the previous SFP-16 build(s) still have their issues and some folks are using SFP-15 (if you have it) until SFP-16 is fixed...
Otherwise here is a link to a comment to download SFP 16.1.2.55.
https://www.magix.info/us/forum/installation-fail--1307922/#ca1820161