• 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: Rép: TextEdit preferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Rép: TextEdit preferences (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Debug AppleScript Droplet in AppleScript Studio
  • Next by Date: Re: Display Dialog with Title
  • Previous by thread: Rép: TextEdit preferences
  • Next by thread: Display Dialog with Title
  • Index(es):
    • Date
    • Thread