• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Close a Window in TextEdit without saving the changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Close a Window in TextEdit without saving the changes
      • From: Tom Robinson <email@hidden>
  • Prev by Date: Taking mail.app 'offline'
  • Next by Date: General question about what is possible re: AS driving JavaScript
  • Previous by thread: Re: Taking mail.app 'offline'
  • Next by thread: Re: Close a Window in TextEdit without saving the changes
  • Index(es):
    • Date
    • Thread