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 com.apple.mail AddressesIncludeNameOnPasteboard -boolean No

To undo this action, use

defaults write com.apple.mail 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/com.cisco.Jabber.plist ~/Library/Preferences/com.cisco.Jabber.plist.backup
defaults read com.cisco.Jabber ARXUserDefaultsChatTranscriptsDirectory
defaults write com.cisco.Jabber ARXUserDefaultsChatTranscriptsDirectory "~/Documents/CiscoJabber-ChatTranscripts"
defaults read com.cisco.Jabber ARXUserDefaultsDeveloperChatArchivePolicyKey
defaults write com.cisco.Jabber ARXUserDefaultsDeveloperChatArchivePolicyKey -int 1
defaults read com.cisco.Jabber ARXUserDefaultsShouldSaveChatTranscriptsKey
defaults write com.cisco.Jabber ARXUserDefaultsShouldSaveChatTranscriptsKey -bool true
defaults read com.cisco.Jabber ARXUserDefaultsShowCommHistoryInSeparateTabsKey
defaults write com.cisco.Jabber 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 com.apple.dock expose-animation-duration -float 0.15;killall Dock