gopen(1) man page put together by Martin Brecher <firstname.lastname@example.org> Copyright (C) 2005 Free Software Foundation, Inc. Process this file with groff -man -Tascii gopen.1
NAMEgopen - open files
SYNOPSISgopen [-a application] [-o] [-p] [-NXHost hostname] [filename]
DESCRIPTIONThe 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 specifying 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.
- -a application
- use applicationto open filename
- openfilename (may be used in conjunction with -p ).
- -NXHost hostname
- attach to remote window server on hostname
EXAMPLESOpen all files with a .txt extension in the current directory:
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
BUGSUsing 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.