Guest User

Untitled

a guest
Mar 17th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. replace=$1
  4. with=$2
  5.  
  6. commands="Add :NSUserReplacementItems:0 dict\n\
  7. Add :NSUserReplacementItems:0:on integer 1\n\
  8. Add :NSUserReplacementItems:0:replace string $replace\n\
  9. Add :NSUserReplacementItems:0:with string $with\n\
  10. Save\nExit\n"
  11.  
  12. echo $commands | /Users/epall/bin/PlistBuddy ~/Library/Preferences/.GlobalPreferences.plist 2>&1 > /dev/null
Add Comment
Please, Sign In to add comment