Skip to content

Instantly share code, notes, and snippets.

@alicraigmile
Created October 16, 2014 08:52
Show Gist options
  • Save alicraigmile/1a8dc22828e573f3eead to your computer and use it in GitHub Desktop.
Save alicraigmile/1a8dc22828e573f3eead to your computer and use it in GitHub Desktop.
Launch TextEdit to edit documents graphically (work on MacOS X)
# Launch TextEdit to edit documents graphically
gedit() {
osascript -e "tell application \"TextEdit\" to open POSIX file \"$1\"" -e "tell application \"TextEdit\" to activate"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment