• 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
Re: Close a Window in TextEdit without saving the changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Close a Window in TextEdit without saving the changes (From: Emile Schwarz <email@hidden>)

  • Prev by Date: Re: Taking mail.app 'offline'
  • Next by Date: QuickTime 7 - Make New annotation
  • Previous by thread: Close a Window in TextEdit without saving the changes
  • Next by thread: General question about what is possible re: AS driving JavaScript
  • Index(es):
    • Date
    • Thread