Re: Missing dot in the close button
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