home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!n8emr!uncle!oink!count0!cgb
- From: cgb@count0.cmhnet.org (Charles G. Bennett)
- Subject: Re: Command-line apps now harder (Can you pass arguments?)
- Message-ID: <1992Sep6.161750.549@count0.cmhnet.org>
- Sender: cgb@count0.cmhnet.org
- Reply-To: cgb@count0.cmhnet.org
- Organization: BenaTong
- References: <1992Sep4.194248.568@leland.Stanford.EDU>
- Date: Sun, 6 Sep 1992 16:17:50 GMT
- Lines: 31
-
- In article <1992Sep4.194248.568@leland.Stanford.EDU>
- qureshi@unixhub.slac.stanford.edu ("For deposit only") writes:
- > In article <1992Sep2.141110.19865@pencom.com> alex@laos (Alex D. Nghiem)
- > writes:
- > >
- > > You can always use open, such as open Example.app to launch the
- application.
- > >
- > >
- > > Best regards,
- > >
- > >
- > > Alex Duong Nghiem Phone: (512) 343-1111
- >
- > How can you also pass arguments to the application being opened. e.g, open
- > bar.app and have it open a file called "foo".
- >
- > I tried "open bar.app foo" but it doesn't work.
- >
- > Thanx,
- >
- > imran
-
- Well NXArgv and NXArgc are still there, so If YOU are writing the app
- just use the getopt stuff to parse the "bad fellows" out.
-
- Chuck
- --
- Chuck Bennett, BenaTong Consulting
- Harem Security (UNIX Consulting :-) )
- cgb@count0.cmhnet.org
-