Re: Rép: TextEdit preferences
Re: Rép: TextEdit preferences
- Subject: Re: Rép: TextEdit preferences
- From: Philip Aker <email@hidden>
- Date: Sun, 17 May 2009 13:18:10 -0700
On 2009-05-17, at 11:38:32, Yvan KOENIG wrote:
When the key does not exist then the format is RichText.
This is a common behavior in Mac OS X because some preferences calls in CoreFoundation and Cocoa will return NULL if a key/value pair doesn't exist (instead of an error) and the developer will take that to mean "use the built-in default behavior".
the entry is created only if we change the default setting. I assumed that if we move back to the default setting the entry remains available with the value 1 but in fact is is deleted.
Checking that, I took care that if we change the setting, the plist is not updated until we quit the app.
So I can't rely on this setiing to check if a newly created document is a Rtf file.
Can you run this script with both default settings? I'm wondering if either the 'name' or 'title' is consistently English on your setup.
tell application "TextEdit" activate make new document tell application "System Events" to tell application process "TextEdit" to tell menu bar 1 to tell menu bar item 5 to tell menu 1 properties of menu item 4 end tell end tell
Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@ Democracy: Two wolves and a sheep voting on lunch.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden