[comp.sys.amiga] Make fabulous wealth, become hero to millions

hobie@sq.uucp (Hobie Orris) (05/31/88)

	I was thinking that one of the main reasons I don't use WorkBench
is that the programs I deal with require objects and options (like diff,
arc, make, etc.)  Objects can be handled by dragging icons around (but
I never did figure that out!) but options are still sticky in this situation.
What would be nice is if someone wrote a general-purpose intuition-driven
getopt()!  You know, give it, instead of just an option string, a set of
gadget labels as well, so a window could be put up with options as boolean
gadgets, and string parameters as string gadgets.  Maybe prop gadgets could
fit in as well.  Then EVERYBODY could re-write all their programs so that
all would be intuitionized. Sound like fun?  Who would like to be rich and
famous?  Unfortunately, I can't since I hurt my thumb.

	Here's a small example:

char *options =
{
	"a: x: m: d: l:"	/* the : means it takes an argument, right? */
};

char *legends[] =
{
	"add file to archive",
	"extract file from archive",
	"move file to archive",
	"delete file from archive",
	"list files in archive"
};

extern char *optarg;	/* where the optional argument will be, if any */

main(ac,av)
int ac;
char **av;
{
	char c;

	while ((c = getopt(options, legends, argv)) != 0)
	{
		switch(c)
		{
			case 'a':
				add_file(optarg);
				break;
	.
	.
	.
(you get the idea)

I think that this sort of thing would make PD software more accessible to
a great many people, particularly those who dislike typing, or who are
uncomfortable with the CLI.  This proposal reminds me of Peter da Silva's
ultimate file requester, which everyone was urged to adopt.  Anybody pick up
on that one, Peter?  I know that I'm keeping it in my back pocket for later
use.

 Hobie Orris			| "I'm checking out of this bourgeois motel -
 guest of SoftQuad Inc. Toronto	| Push myself away from the dinner table and say
 utzoo!sq!hobie			| NO MORE JELLO FOR ME, MOM!"

peter@sugar.UUCP (Peter da Silva) (06/02/88)

In article <1988May30.224813.27935@sq.uucp>, hobie@sq.uucp (Hobie Orris) writes:
> I think that this sort of thing would make PD software more accessible to
> a great many people, particularly those who dislike typing, or who are
> uncomfortable with the CLI.  This proposal reminds me of Peter da Silva's
> ultimate file requester, which everyone was urged to adopt.  Anybody pick up
> on that one, Peter?  I know that I'm keeping it in my back pocket for later
> use.

Actually, it reminds me more of my "Instant Application" package, which
was derived from my file requestor. You passed it an array containing a
set of labels and routines to call when those labels were selected. It
would then pop up my Standard File Requestor and provide an Applications
menu. You then select files and options. I sent it in to c.s.a, but I
don't recall ever seeing it posted. Anyone actually get it?

In fact, it sounds almost exactly like Instant Application...
-- 
-- Peter da Silva      `-_-'      ...!hoptoad!academ!uhnix1!sugar!peter
-- "Have you hugged your U wolf today?" ...!bellcore!tness1!sugar!peter
-- Disclaimer: These may be the official opinions of Hackercorp.