[MlMt] Viewing text vs HTML part of message

Paul Sture mailmt at techchat.ch
Fri Oct 21 16:59:36 EDT 2016


On 21 Oct 2016, at 21:41, Bill Cole wrote:

> On 21 Oct 2016, at 14:45, Paul Sture wrote:
> [...]
>> I couldn't find my definitions in the Shortcuts within System 
>> Preferences -> Keyboard, so looked in the MailMate plist:
>>
>> ~/Library/Prefences/com.freron.MailMate.plist
>>
>> The relevant entries are here:
>>
>> 	<key>NSUserKeyEquivalents</key>
>> 	<dict>
>> 		<key>Next Alternative</key>
>> 		<string>^<</string>
>> 		<key>Previous Alternative</key>
>> 		<string>^$<</string>
>> 	</dict>
>>
>> Now, should I simply delete that lot,
>
> If you're on a recent MacOS (since Lion?), editing a "live" 
> Preferences plist is not reliably functional and can be dangerous. It 
> *can* work, but cfprefsd is not friendly to those who touch its 
> files...
>
>> or is there a better way via the 'defaults delete' command?
>
> The NSUserKeyEquivalents dictionary is where  System 
> Preferences->Keyboard->App Shortcuts stores per-app shortcuts, so 
> maybe double-check there?

Aha, I see what I did now.  Looking at my old Mac I see the shortcuts in 
the App Shortcuts.  I must have simply copied across the MailMate plist 
file to the newer Mac without also doing the settings in App Shortcuts.

Hence why I don't see them in App Shortcuts on the new Mac.

> A bit of testing tells me that if there's a NSUserKeyEquivalents dict 
> in com.freron.MailMate that has been entirely added by hand with 
> 'defaults', System Preferences->Keyboard does not see it, and adding 
> any new shortcut obliterates the existing dictionary. However, if 
> there's an existing shortcut created by System Preferences->Keyboard, 
> NSUserKeyEquivalents exists and can be added to AND System 
> Preferences->Keyboard will see the additions.
>
> So it might work for you to add a MailMate shortcut in System 
> Preferences->Keyboard and then delete it. The advantage of this is 
> that System Preferences->Keyboard knows some magic for alerting 
> MailMate and/or cfprefsd to the change in realtime which 'defaults' 
> does not.

Yes that worked.  I defined the same shortcuts in App Shortcuts, then 
removed them, and they automagically disappeared from the MailMate plist 
file, and the MailMate menu.  FWIW I did the final removal while 
MailMake was running, and the menu entries reverted to their defaults 
without the need to quit and restart MM.

The NSUserKeyEquivalents dict has now disappeared from 
com.freron.MailMate

P.S. Why the change to a US keyboard? Apple really didn't do a very good 
job with the Swiss keyboard when it came to the characters used in 
programming.  All of [, ], {, }, |, \, ~ require Option, plus various 
keys only available with Shift (e.g. \ is Shift-Option-7) don't generate 
the right thing when you want Control or Command as a modifier. After 
many years of struggling I finally gave up for the system I do 
programming on.


More information about the mailmate mailing list