Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gopen(1) [debian man page]

GOPEN(1)						       GNUstep System Manual							  GOPEN(1)

NAME
gopen - open files SYNOPSIS
gopen [-a application] [-o] [-p] [-NXHost hostname] [filename] DESCRIPTION
The gopen command allows you open a file (or directory) as if you had double clicked the object's icon. It is possible to specify one or more filenames which are interpreted relative to the current working directory. By default, gopen will open filename with the application currently assigned to the file's extension. But by specifing the -a flag on the command line you can tell gopen to open the file with another application. You can also directly print a file without ( -p ) or with ( -p -o ) opening it. As with most other GNUstep software, it is easily possible to attach the process to a remote window server using the -NXHost flag. OPTIONS
-a application use application to open filename -o open filename (may be used in conjunction with -p ). -p print filename instead of opening. -NXHost hostname attach to remote window server on hostname EXAMPLES
Open all files with a .txt extension in the current directory: gopen *.txt To open a source file in CodeEditor (instead of the current default application), type: gopen -a CodeEditor MySourceFile.m To print the .plan file in your home folder, use the -p flag: gopen -p ~/.plan BUGS
Using the -a application argument, gopen allows you to open any kind of file with any application you want. This does, however, not work with applications employing the NSDocument architecture as they will only receive filenames whose types the application has registered. To circumvent this limitation, applications may advertise their ability to open all kinds of files through the "*" filetype. When gopen is used with only the -a application argument but no filename present, the application is simply launched without opening a specific file. SEE ALSO
GNUstep(7), openapp(1) HISTORY
gopen was written November 2001. This manual page was first written July 2003. AUTHORS
gopen was written by Gregory Casamento <greg_casamento@yahoo.com>. This man page was written by Martin Brecher <martin@mb-itconsulting.com>. GNUstep August 2003 GOPEN(1)

Check Out this Related Man Page

OPEN(1) 						    BSD General Commands Manual 						   OPEN(1)

NAME
open -- open files and directories SYNOPSIS
open [-e] [-t] [-f] [-F] [-W] [-R] [-n] [-g] [-h] [-b bundle_identifier] [-a application] file ... [--args arg1 ...] DESCRIPTION
The open command opens a file (or a directory or URL), just as if you had double-clicked the file's icon. If no application name is speci- fied, the default application as determined via LaunchServices is used to open the specified files. If the file is in the form of a URL, the file will be opened as a URL. You can specify one or more file names (or pathnames), which are interpreted relative to the shell or Terminal window's current working directory. For example, the following command would open all Word files in the current working directory: open *.doc Opened applications inherit environment variables just as if you had launched the application directly through its full path. This behavior was also present in Tiger. The options are as follows: -a application Specifies the application to use for opening the file -b bundle_indentifier Specifies the bundle identifier for the application to use when opening the file -e Causes the file to be opened with /Applications/TextEdit -t Causes the file to be opened with the default text editor, as determined via LaunchServices -f Reads input from standard input and opens the results in the default text editor. End input by sending EOF character (type Control-D). Also useful for piping output to open and having it open in the default text editor. -F Opens the application "fresh," that is, without restoring windows. Saved persistent state is lost, except for Untitled documents. -W Causes open to wait until the applications it opens (or that were already open) have exited. Use with the -n flag to allow open to func- tion as an appropriate app for the $EDITOR environment variable. -R Reveals the file(s) in the Finder instead of opening them. -n Open a new instance of the application(s) even if one is already running. -g Do not bring the application to the foreground. -h Searches header locations for a header whose name matches the given string and then opens it. Pass a full header name (such as NSView.h) for increased performance. --args All remaining arguments are passed to the opened application in the argv parameter to main(). These arguments are not opened or inter- preted by the open tool. EXAMPLES
"open '/Volumes/Macintosh HD/foo.txt'" opens the document in the default application for its type (as determined by LaunchServices). "open '/Volumes/Macintosh HD/Applications/'" opens that directory in the Finder. "open -a /Applications/TextEdit.app '/Volumes/Macintosh HD/foo.txt'" opens the document in the application specified (in this case, TextE- dit). "open -b com.apple.TextEdit '/Volumes/Macintosh HD/foo.txt'" opens the document in the application specified (in this case, TextEdit). "open -e '/Volumes/Macintosh HD/foo.txt'" opens the document in TextEdit. "ls | open -f" writes the output of the 'ls' command to a file in /tmp and opens the file in the default text editor (as determined by LaunchServices). "open http://www.apple.com/" opens the URL in the default browser. "open 'file://localhost/Volumes/Macintosh HD/foo.txt'" opens the document in the default application for its type (as determined by Launch- Services). "open 'file://localhost/Volumes/Macintosh HD/Applications/'" opens that directory in the Finder. "open -h NSView" lists headers whose names contain NSView and allows you to choose which ones to open. "open -a Xcode -h NSString.h" quickly opens /System/Library/Frameworks/Foundation.framework/Headers/NSString.h in Xcode. HISTORY
First appeared in NextStep. Mac OS X February 10, 2004 Mac OS X
Man Page