Re: Close a Window in TextEdit without saving the changes
Re: Close a Window in TextEdit without saving the changes
- Subject: Re: Close a Window in TextEdit without saving the changes
- From: Tom Robinson <email@hidden>
- Date: Tue, 12 Jul 2005 06:51:57 +1200
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
Totally broken here. Doesn't matter if I pass yes, no, or a file
reference.
Maybe you could script a save into a temporary location (to be
cleaned up later), then close.
And file a bug report of course...
Cheers
_______________________________________________
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