G
gatorparrots
Guest
If you need to edit a root-owned system configuration file, it is possible to do so with a graphical text editor, if you so desire. In fact, any application can be opened as root [although why anyone would want to open Chess.app as root is beyond me...] (This functionality is essentially what Brian Hill's utility Pseudo allows you to do: tp://personalpages.tds.net/~brian_hill/pseudo.html): (outdated link removed)
First, a little background about the open command:
The command is simply open (which can also be used for opening directories). The most basic example is launching an application:
open /path/to/some.app
More complex possibilities also exist:
open "/Volumes/Macintosh HD/somedoc.txt"
opens the document in the default application for its type (as determined by LaunchServices).
open /Applications/
opens that directory in the Finder.
open -a /Applications/TextEdit.app "/Volumes/Macintosh HD/somedoc.txt"
opens the document in the application specified (in this case, TextEdit).
open -e "/Volumes/Macintosh HD/somedoc.txt"
opens the document in TextEdit (the -e option specifies TextEdit).
open Apple
opens the URL in the default browser (lynx, naturally *wink*)
open "file://localhost/Volumes/Macintosh HD/somedoc.txt"
opens the document in the default application for its type (as determined by LaunchServices).
open "file://localhost/Volumes/Macintosh HD/Applications/"
opens that directory in the Finder.
As you can see, open is a very versatile command. However, in the following post I will point at least one glaring limitation. Let the fun begin...
First, a little background about the open command:
The command is simply open (which can also be used for opening directories). The most basic example is launching an application:
open /path/to/some.app
More complex possibilities also exist:
open "/Volumes/Macintosh HD/somedoc.txt"
opens the document in the default application for its type (as determined by LaunchServices).
open /Applications/
opens that directory in the Finder.
open -a /Applications/TextEdit.app "/Volumes/Macintosh HD/somedoc.txt"
opens the document in the application specified (in this case, TextEdit).
open -e "/Volumes/Macintosh HD/somedoc.txt"
opens the document in TextEdit (the -e option specifies TextEdit).
open Apple
opens the URL in the default browser (lynx, naturally *wink*)
open "file://localhost/Volumes/Macintosh HD/somedoc.txt"
opens the document in the default application for its type (as determined by LaunchServices).
open "file://localhost/Volumes/Macintosh HD/Applications/"
opens that directory in the Finder.
As you can see, open is a very versatile command. However, in the following post I will point at least one glaring limitation. Let the fun begin...