• 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: Accessing Localized File Menu String
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing Localized File Menu String


  • Subject: Re: Accessing Localized File Menu String
  • From: Philip Aker <email@hidden>
  • Date: Sat, 11 Jul 2009 04:09:07 -0700

On 2009-07-10, at 02:36:09, Yvan KOENIG wrote:

However I see that:

plutil -convert xml1 -o edit.plist /Applications/TextEdit.app/Contents/Resources/French.lproj/Edit.nib/keyedobjects.nib

offers some hope because the association is with an action and that can be used as a fixed element. The resulting plist format is not exactly what one would call regular, however I think it might be possible to work with.

I wrote a code using the brute force.

No wonder brute force was needed.

There seems to be an inexcusable bug. Namely that the plutil conversion results in an illegal XML file. Anyone should be able to verify the following in Terminal:

plutil -convert xml1 -o edit.plist /Applications/TextEdit.app/Contents/Resources/French.lproj/Edit.nib/keyedobjects.nib;xmllint --valid edit.plist

The following error is reported. My setup is 10.5.7/Intel, AppleLocale = "en_US_POSIX".

edit.plist:914: parser error : internal error
<string>/string>
        ^
edit.plist:914: parser error : Extra content at the end of the document
<string>/string>

The exact error is that plutil is not converting a 0x1B menu command key to an XML character entity. Legal XML characters are specified here: <http://www.w3.org/TR/2008/REC-xml-20081126/#charsets>.


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

 _______________________________________________
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: 
 >Accessing Localized File Menu String (From: Ian was here <email@hidden>)
 >Re: Accessing Localized File Menu String (From: Chris Page <email@hidden>)
 >Re: Accessing Localized File Menu String (From: Philip Aker <email@hidden>)
 >Re: Accessing Localized File Menu String (From: Chris Page <email@hidden>)
 >Re: Accessing Localized File Menu String (From: Philip Aker <email@hidden>)
 >Re: Accessing Localized File Menu String (From: Philip Aker <email@hidden>)
 >Re: Accessing Localized File Menu String (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: still having trouble with SOAP
  • Next by Date: Re: 2 timers at once
  • Previous by thread: Rép: Accessing Localized File Menu String
  • Next by thread: Re: Accessing Localized File Menu String
  • Index(es):
    • Date
    • Thread