1GOPEN(1)                     GNUstep System Manual                    GOPEN(1)
2
3
4

NAME

6       gopen - open files
7

SYNOPSIS

9       gopen [-a application] [-o] [-p] [-NXHost hostname] [filename]
10

DESCRIPTION

12       The  gopen  command allows you open a file (or directory) as if you had
13       double clicked the object's icon.
14
15       It is possible to specify one or more filenames which  are  interpreted
16       relative to the current working directory.
17
18       By  default,  gopen  will  open filename with the application currently
19       assigned to the file's extension. But by specifing the -a flag  on  the
20       command  line you can tell gopen to open the file with another applica‐
21       tion.
22
23       You can also directly print a file without ( -p ) or with  (  -p  -o  )
24       opening it.
25
26       As  with  most  other GNUstep software, it is easily possible to attach
27       the process to a remote window server using the -NXHost flag.
28

OPTIONS

30       -a application
31              use application to open filename
32
33       -o     open filename (may be used in conjunction with -p ).
34
35       -p     print filename instead of opening.
36
37       -NXHost hostname
38              attach to remote window server on hostname
39

EXAMPLES

41       Open all files with a .txt extension in the current directory:
42
43       gopen *.txt
44
45       To open a source file in CodeEditor (instead  of  the  current  default
46       application), type:
47
48       gopen -a CodeEditor MySourceFile.m
49
50       To print the .plan file in your home folder, use the -p flag:
51
52       gopen -p ~/.plan
53

BUGS

55       Using the -a application argument, gopen allows you to open any kind of
56       file with any application you want. This does, however, not  work  with
57       applications  employing  the  NSDocument architecture as they will only
58       receive filenames whose types the application has registered.  To  cir‐
59       cumvent  this  limitation,  applications may advertise their ability to
60       open all kinds of files through the "*" filetype.  When gopen  is  used
61       with only the -a application argument but no filename
62        present, the application is simply launched without opening a specific
63       file.
64

SEE ALSO

66       GNUstep(7), openapp(1)
67

HISTORY

69       gopen was written November 2001.
70
71       This manual page was first written July 2003.
72

AUTHORS

74       gopen was written by Gregory Casamento <greg_casamento@yahoo.com>.
75
76       This man page  was  written  by  Martin  Brecher  <martin@mb-itconsult‐
77       ing.com>.
78
79
80
81GNUstep                           August 2003                         GOPEN(1)
Impressum