Advertisement
themacdweeb

Refresh OSX OpenWith SubMenu.sh

Oct 16th, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.37 KB | None | 0 0
  1. #!/bin/sh
  2. # This simple script does one thing and does it well:
  3. # it will refresh the "open with" sub-menu so that only CURRENT APPLICATIONS are listed.
  4. # Old or deleted apps are removed
  5.  
  6. /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user;killall Finder
  7.  
  8. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement