textWrangler: Make new Document with Name

I have several scripts that will be used in conjunction with each other and each will create a status report in textWrangler.

textWrangler has this great feature where it (essentially) tabulates the open documents (ala Firefox and Safari tabs). What I’d like to do is name the newly created document so that as more are created, it is clear to the user what document is what.

I thought I could simply do this:


tell application "TextWrangler"
	activate
	make new document {name:"Missing Files"}
end tell

but that generates the following errors:

Anyone have any idea how I can name the newly created document (without saving it).

Thanks.

You are almost there:


tell application "TextWrangler"
	activate
	make new document with properties {name:"Missing Files"}
end tell

:wink:

Ha! Wow, that was pretty embarrassing. Oh well.

Thanks.