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?
migrated from stackoverflow.com Sep 23 '11 at 23:53
|
The Other relevant options
|
|||
|
|
|
For those finding this post: The solution was to use the command And the man pages for the open command also show how to do some other things like show the file in the finder. http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/open.1.html |
|||||||||
|
|
The open command can be used to open files (in their default apps, unless using the -a flag), URLs (in your default web browser), and directories (in Finder). An example would be
|
||||
|
|
|
This is not a programming question. But I did a quick google and found this site: http://ss64.com/osx/pico.html pico: Simple text editor http://ss64.com/vi.html vi: Text Editor And this site explains how to use TextEdit from terminal. http://www.tech-recipes.com/rx/2754/os_x_edit_file_using_textedit_as_root_superuser/ |
|||||||||||
|
|||||||||||
We're looking for long answers that provide some explanation and context. Don't just give a one-line answer: please explain why you're recommending it as a solution. Answers that don't explain anything will be deleted. See Good Subjective, Bad Subjective for more information. |
|||||||||||
sudo, gota open TextEdit in root mode first – Cawas May 2 at 11:26