TextWrangler 4.0 Release Notes

This page documents all the new features, enhancements and visible changes included in the TextWrangler 4.0 release.

For information about the changes included in any specific version of TextWrangler, please see the release notes archive.

For detailed information on using any of TextWrangler's features, please refer to the user manual (choose "User Manual" from TextWrangler's Help menu).


TextWrangler 4 requires Mac OS X 10.6 or later (10.6.8 or later recommended).

PowerPC-based Macs are not supported.


on documentShouldFinalizeAuthenticatedSave(theDocument, tempFilePath, destinationPath)

-- on input: tempFilePath points to the contents of the document
-- written to a temp file, ready to move to the destination;
-- destinationPath is where the file should be copied.

-- on exit: if the operation succeeded, delete the temp file (or
-- else the application will assume the operation failed) and
-- return YES for success

--  this is pretty straightforward: "cp tmpFilePath destinationPath"

do shell script "cp" & " " & quoted form of tempFilePath & " " & quoted form of destinationPath with administrator privileges

--  now remove the temp file, this indicates to the application that we did the work

do shell script "rm" & " " & quoted form of tempFilePath

return true

end documentShouldFinalizeAuthenticatedSave