Community Forums Archive

Go Back

Subject:Filename in Title SF10
Posted by: Kit
Date:3/18/2014 10:15:11 PM

Anyway to have SoundForge show the full file name in the Title bar rather than the name title given in CD information? Thanks.

Subject:RE: Filename in Title SF10
Reply by: rraud
Date:3/19/2014 9:57:52 AM

If the CD/Title name is cleared, the file name will be the default name shown.
There is may a setting in the hidden advanced menu, which I do not recall how to access at the moment. But it can dangerous. like editing the OS registry.

Subject:RE: Filename in Title SF10
Reply by: Kit
Date:3/19/2014 2:47:00 PM

Thanks, I don't want to clear that. I think you are referring to pressing shift while selecting preferences. That brings up the hidden options but I couldn't find anything in there. Actually, what I am really after is an easy way to be be able to access the full file name including the path.

Subject:RE: Filename in Title SF10
Reply by: roblesinge
Date:3/19/2014 5:12:27 PM

You could make the File Properties window view always open. The file name is one of the fields in that. Otherwise, I'm not sure how to change the name that SF displays at the top of the window.

R.

Subject:RE: Filename in Title SF10
Reply by: Kit
Date:3/19/2014 8:07:42 PM

Thanks for the suggestion. I found I can use the following code to send the file path to the clipboard:

using System;
using System.IO;
using System.Windows.Forms;
using SoundForge;

public class EntryPoint {
public void Begin(IScriptableApp app) {

Clipboard.SetText(app.CurrentFile.Filename);
}

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, object o) { ForgeApp.OutputText(String.Format(fmt,o)); }
public static void DPF(string fmt, object o, object o2) { ForgeApp.OutputText(String.Format(fmt,o,o2)); }
public static void DPF(string fmt, object o, object o2, object o3) { ForgeApp.OutputText(String.Format(fmt,o,o2,o3)); }
public static string GETARG(string k, string d) { string val = Script.Args.ValueOf(k); if (val == null || val.Length == 0) val = d; return val; }
public static int GETARG(string k, int d) { string s = Script.Args.ValueOf(k); if (s == null || s.Length == 0) return d; else return Script.Args.AsInt(k); }
public static bool GETARG(string k, bool d) { string s = Script.Args.ValueOf(k); if (s == null || s.Length == 0) return d; else return Script.Args.AsBool(k); }
} //EntryPoint


From here I can use AutoHotkey to open Explorer etc

Go Back