Close a Window in TextEdit without saving the changes
Close a Window in TextEdit without saving the changes
- Subject: Close a Window in TextEdit without saving the changes
- From: Emile Schwarz <email@hidden>
- Date: Mon, 11 Jul 2005 16:53:16 +0200
Hi all,
the following script close the TextEdit front window (which have the document
modified boolean set to true), but displays the "Do you want to save the
changes..." dialog window:
tell application "TextEdit"
-- set TextEdit to the front
activate
-- close the window without saving the changes
close front window saving no
end tell
Who's wrong:
a. Mac OS X 10.4.1
b. My script.
TIA,
Emile
suggestions are welcome
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden