Wednesday, June 27, 2012

Changing default quit key for apps on macos

The following command will change the default key to Command+Shift+Q for Mail and Safari.

defaults write NSGlobalDomain NSUserKeyEquivalents '{"Quit Safari" = "@$Q"; "Quit Mail" = "@$Q";}'

The odd characters before the 'Q' in the previous command, specify the modifiers:
  • @ = Command 
  • $ = Shift 
  • ~ = Option 
  • ^ = Control

Tuesday, June 26, 2012

Copy only the email address in Apple Mail

Use the following command to only copy the email address from Apple Mail.

defaults write AddressesIncludeNameOnPasteboard -boolean No

To undo this action, use

defaults write AddressesIncludeNameOnPasteboard -boolean Yes

Saturday, June 23, 2012

Cisco Jabber Saving Chat History

1. Create a folder in Documents called 'CiscoJabber-ChatTranscripts'
2. Quite the Jabber Client
3. Run the following commands
cp ~/Library/Preferences/ ~/Library/Preferences/
defaults read ARXUserDefaultsChatTranscriptsDirectory
defaults write ARXUserDefaultsChatTranscriptsDirectory "~/Documents/CiscoJabber-ChatTranscripts"
defaults read ARXUserDefaultsDeveloperChatArchivePolicyKey
defaults write ARXUserDefaultsDeveloperChatArchivePolicyKey -int 1
defaults read ARXUserDefaultsShouldSaveChatTranscriptsKey
defaults write ARXUserDefaultsShouldSaveChatTranscriptsKey -bool true
defaults read ARXUserDefaultsShowCommHistoryInSeparateTabsKey
defaults write ARXUserDefaultsShowCommHistoryInSeparateTabsKey -bool true

4. Start the Jabber Client

Friday, June 22, 2012

Speed up Mission Control Animation

The following command will speed up the animation for the mission control so your laptop appears to be working fast.

defaults write expose-animation-duration -float 0.15;killall Dock