You can copy the settings to another Mac by copying ~/Library/Preferences/.GlobalPreferences.plist
.
Note that preferences are cached on 10.9, so if you replace a plist or edit it directly, quitting and reopening applications won't apply the changes. You can apply the changes by running defaults read -g
, by running killall cfprefsd
, or by logging out and back in. Changes made with defaults are still applied if you just quit and reopen an application.
Print the current settings:
defaults read -g NSUserDictionaryReplacementItems
Add one setting:
defaults write -g NSUserDictionaryReplacementItems -array-add '{on=1;replace=cmd;with="⌘";}'
Replace all settings:
defaults write -g NSUserDictionaryReplacementItems '(
{on=1;replace=cmd;with="⌘";},
{on=1;replace=opt;with="⌥";}
)'
Print the current settings as XML:
defaults read -g NSUserDictionaryReplacementItems | plutil -convert xml1 - -o -
Replace all settings:
amp() { local x=${1//&/& }; x=${x//</< }; printf %s "${x//>/> }"; }
out='<array>'
while IFS= read -r l; do
out+="<dict><key>on</key><integer>1</integer><key>replace</key><string>$(amp "${l%% *}")</string><key>with</key><string>$(amp "${l#* }")</string></dict>"
done <<< 'cmd ⌘
opt ⌥'
defaults write -g NSUserDictionaryReplacementItems "$out</array>"
Replace NSUserDictionaryReplacementItems
with NSUserReplacementItems
in 10.8 and earlier.
Here's a piece of code that just gets desktop's dimensions and transfers them to another application's first window.
Exchange "TextEdit" with Illustrator's process name and build yourself a Service in Automator (open "New", choose Service, draw "Do AppleScript" to right, insert this code ...).
Give it a shortcut via [ System Preferences > Keyboard > Shortcuts > Services ] and get going!
Hope this helps ...
tell application "Finder" to set myBounds to bounds of window of desktop
tell application "System Events" to tell process "TextEdit"
set position of window 1 to {0, 20}
set size of window 1 to {item 3 of myBounds, (item 4 of myBounds) - 20}
end tell
Best Answer
Plainly & simply, Adobe don't want you to try fight their very comprehensive keyboard shortcut system from System Prefs. You can't even see Adobe apps in the shortcuts Applications list unless you select 'Other...'.
Presumably the reasoning is to prevent potential clashes.