Skip to content

Instantly share code, notes, and snippets.

@emilefraser
Last active June 12, 2017 02:35
Show Gist options
  • Save emilefraser/9c01e2ab6d34a3ad5d7e053950dc5532 to your computer and use it in GitHub Desktop.
Save emilefraser/9c01e2ab6d34a3ad5d7e053950dc5532 to your computer and use it in GitHub Desktop.
[Mac Executable Commands] #mac #run
# Remove Duplicate “Open With…” Entries
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
# Open Files In Any Application
open -a /Applications/AppName.app /path/to/file.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment