• 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: Missing dot in the close button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Missing dot in the close button


  • Subject: Re: Missing dot in the close button
  • From: kai <email@hidden>
  • Date: Tue, 7 Dec 2004 05:22:57 +0000


On Tue, 7 Dec 2004 04:54:53 +0100, Ferenc Farkas MÁTYÁS wrote:

Is it a bug or a feature, if I ran this:

tell application "TextEdit"
        set mydoc to make new document at front
        tell mydoc to set text 1 to text 1 & "important data"
        activate
end tell

There isn't a modified doc dot in the close button, so when I tap command+w the window disappears with my important data.


Try something like:

---------------------------

tell application "TextEdit"
set mydoc to make new document at end with properties {text:"important data"}
set mydoc's modified to true
activate
end tell


---------------------------

While this may still not produce a modified dot in the document's close button, it should prevent the window from being closed without first prompting a save.

---
kai
_______________________________________________
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


  • Prev by Date: Re: Reading a file through it's alias
  • Next by Date: Re: Reading Middle Eastern Characters
  • Previous by thread: Missing dot in the close button
  • Next by thread: Re: Reading Middle Eastern Characters
  • Index(es):
    • Date
    • Thread