Subject:Example Script: Save Channels as Files
Posted by: _TJ
Date:4/19/2007 8:34:46 PM
In the main Sound Forge 9.0 forum, it was suggested that it would be easy to write a script to write the channels of a file as separate files. Here is one possible way to do that. Note that this example uses ISfFileHost.NewFile(), so that it can use Save() to prompt the user to choose a filename and format. Then it adds 2,3,4,5, etc to the end of the filename for subsequent channels. One flaw in this script, is that it asks for the output template twice, since there doesn't seem to be any way to get the template back from the initial Save() call. (although you can get the file type).
|
Subject:RE: Example Script: Save Channels as Files
Reply by: MarkWWW
Date:4/20/2007 11:19:48 AM
Thanks very much for that. Mark |
Subject:RE: Example Script: Save Channels as Files
Reply by: noisyscott
Date:8/14/2012 12:14:39 PM
I have a good need for this script, but was hoping to modify it so that the resultant new files simply name and save themselves to the parent file's directory without bringing up the save dialog. Does anyone have any suggestions on how to morph the IsFileHost.NewFile() section to use RenderAs or some other method that will auto-name the new files? Thanks, Scott |
Subject:RE: Example Script: Save Channels as Files
Reply by: roblesinge
Date:8/15/2012 9:39:46 AM
So, you want the save to overwrite the files or do you want them to have some kind of character appended to the filename so an overwrite isn't done? Rob. |
Subject:RE: Example Script: Save Channels as Files
Reply by: noisyscott
Date:8/15/2012 11:39:13 AM
Hello Rob, I want to create new files with an appended character to the name and leave the original intact. Scott |