Using UltraEdit.save() returns an error if the file has not previously been saved. UltraEdit.saveAs(), without an argument, does not seem to do anything. Running the followng:
- Code: Select all
var text = UltraEdit.activeDocument.path;
saves the file with the default name (e.g., "Edit1") automatically.
Does anyone else know an easier way to do this?
Thanks in advance, and apologies if the solution is obvious (I looked for an answer, honest).