I frequently find that a Terminal command to open a file in TextEdit would be very handy. Does such a command exist on Mac OS X?
MacOS – Opening TextEdit Files from Terminal
command linemacosterminaltextedit
Related Question
- MacOS – How to get all the open TextEdit documents back
- MacOS – open a text file in Preview from the Terminal
- How to open a new Terminal window ssh’ed to another machine from the command line
- MacOS TextEdit Customization – Change Default Window Size of .txt Files
- AppleScript: How to Open File in TextEdit Without Bringing Other Windows to Front
- Change Text Background Color in TextEdit on macOS
- Find in all open TextEdit documents
Best Answer
open -a TextEdit filename
should do the trick.The
-a
flag specifies any application you want, so it's applicable to any number of situations, including ones where TextEdit isn't the default editor.Other relevant options
-t
opens in the default editor (i.e. if you use BBEdit, TextMate, etc.)-e
will open the file specifically in TextEdit