ftp.nice.ch/users/chris/open.1.3.NI.b.tar.gz#/open.rtf

This is open.rtf in view mode; [Download] [Up]

li0 li0 li0 li0 li0 tx0 li0 li0 li0 li0 tx0 li0 b NAMEb0 
pardli800 open, appopen, run, unhide, openAs - open files and applications

pardli800 li800 li800 li800 tx800 li0 b SYNOPSISb0 
pardli800 b openb0  [-a i appi0 ] [-o i filei0 ] [-p] [-NXHost i hostnamei0 ] [-unhide] [-nostat] [-wait] [-temp] [-tmpdir i directoryi0 ] [-connectp] [-pause i ni0 ] [-as i extensioni0 ] [+i linenumi0 ] [i filenamei0 ] ...
pard li800 b appopenb0  i appi0 
pardli800 b runb0  i appi0 
pardli800 b unhideb0  i appi0 
pardli800 b openAsb0  i extensioni0  [i optionsi0 ]
pardli800 i appi0  [i optionsi0 ]
pardli800 i appi0 b .clientb0  [i optionsi0 ]

pardli800 li800 li800 li800 tx800 li0 b DESCRIPTIONb0 
pardli800 The b openb0  command allows shell scripts or b Terminalb0  users to make requests to NEXTSTEP applications. The applications may be launched or unhidden, can be asked to open or print files. Besides the added options, it should behave exactly like earlier (working) versions of NeXT's b openb0  command did. It does not require the ``Public Window Server'' switch (a major security hole) in the b Preferencesb0  application to be turned on to work correctly.

pard li800 If no options are given at all or the special file name ``-'' is used, standard input is read. PostScript (.ps), Encapsulated PostScript (.eps), and Rich Text Format (.rtf) files are recognized on standard input and sent to the appropriate applications. All other files are considered typeless, i.e. they are opened in either the named application (see -i ai0 ) or the default application (normally b Editb0 ).

pard li800 Wherever the word i filei0  is used, it also applies to wrappers and ordinary directories.

pard li800 li800 li800 li800 tx800 li800 b OPTIONSb0 

pardli800 li800 li800 li800 li800 tx800 li1600 tx1600 li800 -a i appi0 	li1600 All further requests are directed to the named application. The application is launched if it is not running yet. If no -i ai0  option is given, the Workspace is asked for the default application for the files.

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 -o i filei0 	li1600 The application will be asked to open the named file. This option can be used to switch back from print mode or to prefix a file name which could be mistaken as an option. File names can also be escaped from being mistaken as an option by prefixing them with `./' (this also works with all other commands).

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 -p	li1600 The application will be asked to print the specified files. Print mode will apply to all files given up to the next -i oi0  option.

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 -NXHost i hostnamei0 	li1600 All requests are directed to the Workspace and applications on the remote host. The files to be accessed are looked for on the remote host's file system. This option requires the ``Public Window Server'' switch on the remote host to be turned on, which is major security hole, if you are connected to a network.

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 -unhide	li1600 The named application is unhidden. Most applications will also unhide on a file opening request.

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 -nostat	li1600 The checks whether the next file to be opened or printed does not exist will not be performed. In case of failure of a request to an application, it is not possible to find out whether the file did not exist or the application could not open it. It is necessary for -i NXHosti0 , unless there is also a local file with the same name as the remote file. This option also allows certain applications (such as b Emacsb0 ) to open files that do not exist yet.

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 -wait	li1600 b openb0  will not continue until the next file given is saved for the first time.

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 -tmpdir i directoryi0 	li1600 Sets the directory where the file read from stdin is to be temporarily stored. This is needed to be set to a network-wide accessible directory if you want to open a file from stdin on another host.

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 -temp	li1600 The next file will be opened as a temporary file. This tells the application it should remove the file when it is done. Despite it belongs to the official API, only few applications (such as b Previewb0 ) honor this request.

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 -connectp	li1600 Check if there is a Workspace to connect to. Useful in scripts, exits with 0 if connections are possible, 1 if not.

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 -pause i ni0 	li1600 Wait for i ni0  seconds before continuing.

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 -as i extensioni0 	li1600 The next files will be opened as if they were of the given type. To return to the normal behaviour, you have to explicitely select an application with the -a option. This is implemented by creating a symbolic link whose name has the form "/tmp/basename######.type", where ###### is some number.  Note: depending on the application, doing a "Save" may or may not affect the original file.

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 +i linenumi0 	li1600 In the next file, line number i linenumi0  will automatically be selected. This is currently only supported by b Editb0  and b Emacsb0 .

pard li1600 li1600 li1600 li800 tx800 li800 b ALTERNATEb0  b NAMESb0 
pardli800 li800 b openb0  can also be invoked by other names, where some options are set by default.

pard li800 li800 li800 li800 tx800 li1600 tx1600 li800 b runb0  i appi0 , b appopenb0  i appi0 	li1600 Behave as if it was invoked as b openb0  -b ab0  i appi0 .

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 b unhideb0  i appi0 	li1600 Identical to b openb0  -b ab0  i appi0  -b unhideb0 .

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 b openAsb0  i extensioni0 	li1600 Identical to b openb0  -b asb0  i extensioni0 .

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 i appi0 	li1600 If b openb0  is invoked with any other name, it behaves as if it were called as b openb0  -b ab0  i appi0 .

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 i appi0 b .clientb0 	li1600 Identical to b openb0  -a i appi0  -wait.

pard li1600 li1600 li1600 li800 tx800 li0 b EXAMPLESb0 

pardli800 li800 li800 li800 li800 tx800 li1600 tx1600 li800 b openb0  b *.rtfb0 	li1600 opens all files ending in `.rtf' in the default application for this file type (usually b Editb0 ).

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 b openb0  b -pb0  b *.rtfb0 	li1600 prints all these files.

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 b openb0  b /tmpb0 	li1600 opens up a new file viewer showing the contents of the named directory.

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 b appopenb0  b Yapb0  b Test.psb0 	li1600 launches b Yapb0  (if it is not already running) and asks it to open b Test.psb0 .

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 b Emacsb0  b *b0 	li1600 opens all files in b Emacsb0  (`Emacs' needs to be a link to `open').

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 b Emacs.clientb0  b snd.2935b0 	li1600 asks b Emacsb0  to open the file.  b openb0  will not continue unless the file has been saved. This is an alternative to using b emacsclientb0  as your editor from within Unix programs.

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 b openAsb0  b sndb0  b testb0 	li1600 opens the file b testb0  as if it had the extension b snd.b0  You can use this if you know the type of a file but don't know what the default Application for this file type is.

pard li1600 li1600 li1600 li800 tx800 li1600 tx1600 li800 b htmlizeb0  b fileb0  b |b0  b openb0  b -asb0  b htmlb0 	li1600 Open the data read from standard input as if it was stored in a file which had the extension b html.b0 

pardli1600 li1600 li1600 li800 tx800 li0 b BUGSb0 
pardli800 The -i pi0 , -i tempi0  and +i linenumi0  options are only supported by few applications.

pard li800 -i NXHosti0  should imply -i nostati0 .  The current behaviour is compatible to the original b openb0 .

pard li800 -i NXHosti0  requires ``Public Window Server'' (a major security hole) to be turned on (this is b notb0  our fault).

pard li800 li800 li800 li800 li800 tx800 li0 b AUTHORSb0 
pardli800 This version of b openb0  was written by Christian Limpach <chris@nice.ch>, with suggestions by Felix Rauch <felix@nice.ch> and Marcel Waldvogel <waldvogel@uptime.ch>. This manual page was written by Marcel Waldvogel.
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.