Plugin: Save Copy As
Plugin: Save Copy As
Saves copy of document without affecting the original. Use menu customization to move it under File menu.
- Attachments
-
- save copy as.zip
- (526 Bytes) Downloaded 1319 times
Blumentals Software Programmer
Re: Plugin: Save Copy As
Plugin code to use as an example:
Code: Select all
function SaveCopyAs(Sender) {
var s = Editor.Text;
var enc = Document.Encoding;
Documents.NewDocument(ExtractFileExt(Document.FileName));
Document.Encoding = enc;
Editor.Text = s;
Document.Save("");
Document.Close(True);
}
Script.RegisterDocumentAction("", "Save Copy As", "", &SaveCopyAs);
Blumentals Software Programmer
Re: Plugin: Save Copy As
Nice, it further smooths the work flow. Thanks.
Re: Plugin: Save Copy As
Use menu customization to move it under File menu.
.......Em Crazy..........
Re: Plugin: Save Copy As
Can be simplified by using the build in "Save As.." action, like this:
Then no extra documents needs to be created. 
Code: Select all
function SaveCopyAs(Sender) {
var fn = Document.FileName;
Actions.Execute("ActFileSaveAs");
Document.Filename = fn;
}

There are 10 types of people in the world: Those who understand binary and those who don't.
Re: Plugin: Save Copy As
That might work, except with files opened from FTP.
Blumentals Software Programmer