Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!canon.UUCP!smith From: smith@canon.UUCP (Mark Smith) Newsgroups: comp.windows.news Subject: getting args into NeWS apps Message-ID: <9004111746.AA02461@hagen.canon> Date: 11 Apr 90 21:05:17 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 26 Possibly Stupid Question #1: What's the easiest way to get command line arguments to a NeWS application written entirely in PostScript? Given that the first line of the application file is "#! /usr/openwin/bin/psh", I'd like to be able to invoke it as application arg1 arg2 ... Since the man entry for psh says all args to it are files sent to the server, I can't see an obvious way to make this work. Am I missing something obvious? Probably Not So Stupid Question #2: Has anyone seen any documentation for the protocol for supporting the drag&drop stuff from the File Manager to application windows? Again, I'd like to support this in a PostScript-only application. The only (maybe) reference I can find is the ACTION_DRAG_LOAD event in back of the XView manual. Is there a corresponding event in the NeWS input model? I have RTFM(s), honest. +-----------------------------------+------------------------------+ | Mark Smith | tel: +44 483 574 325 | | Canon Research Centre Europe Ltd. | fax: +44 483 574 360 | | 19 Frederick Sanger Road +------------------------------+ | Surrey Research Park | inet: smith@canon.co.uk | | Guildford Surrey UK GU2 5YD | uucp: ukc!uos-ee!canon!smith | +-----------------------------------+------------------------------+