"Save as" from within patch

Mar 20, 2011 at 11:55am

"Save as" from within patch

Hi everyone,

Any way to save a patch with a new name from within the patch itself (meaning I don’t want to use the mouse to go up to File->Save As)? It can be done with Java simulating key events, for example, but I’m hoping there’s a more elegant way.

Since the contents of the patch are being scripted at startup, I suppose I could grab that data and format the JSON file myself…

Any ideas? Maybe I’m missing something very simple.

best,
Zachary

#55685
Mar 20, 2011 at 9:26pm

how about the fscopy object of Jasch? I don’t think it has a “save as” but I know you can copy, replace, rename files… maybe a start?

#200258
Mar 20, 2011 at 11:58pm

Hi MIB,

Thanks, but that doesn’t exactly do what I need. I can use that or shell cp command, etc. to copy the file, but if I’ve scripted new objects since the last save, those new objects won’t be copied with the file.

The more I think about this, the more I think I’ll need to track the scripted objects and use javascript or other language to format into a JSON file.

Wonder if pattr can help…

best,
Zachary

#200259

You must be logged in to reply to this topic.