TextWrangler 4 Release Notes

This page documents all feature enhancements and refinements included in TextWrangler 4 (including 4.0 and subsequent feature updates).

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).

Requirements

TextWrangler 4 requires Mac OS X 10.6 or later (10.6.8, 10.7.5, 10.8.5, 10.9.5 or later recommended).

PowerPC-based Macs are not supported.

Additions

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

Changes

fin