[comp.sys.amiga.programmer] How do I invoke ARexx pgm by an icon ?

jlovkay@eagle.wesleyan.edu (01/23/91)

I've just written my first program (ARexx), and it works so well I want to set
it up to be invoked by an icon :-)

I can't seem to find anything in the manual on how to define the icon, although
I've gotten pretty good with iconedit to draw the icon.


should it be a 'tool' icon, or a 'project' icon or what ?

how do I associate the command 'rx programname.rexx' with the icon 

Thanks in advance, Jim


-- 
The only purpose for which power can be rightfully exercised over any member of
a civilized community, against his will, is to prevent harm to others ... over
himself, over his own body and mind, the individual is sovereign.

				John Stuart Mill 'On Liberty' 1859

higgin@cbmvax.commodore.com (Paul Higginbottom - CATS) (01/25/91)

In article <1991Jan23.093446.37959@eagle.wesleyan.edu> jlovkay@eagle.wesleyan.edu writes:
$I've just written my first program (ARexx), and it works so well I want to set
$it up to be invoked by an icon :-)

That's what IconX is for.  Create a Project icon, with c:IconX as it's
default tool.  The Project icon would be the same name as an AmigaDOS
script which could call rx to run the ARexx script.

E.g:
	x.info - project icon, def. tool c:IconX
	x - AmigaDOS script containing:
		rx x.rexx
	x.rexx - your ARexx script.

(This is off the top of my head, but it should work.)

$I can't seem to find anything in the manual on how to define the icon,
$although I've gotten pretty good with iconedit to draw the icon.

The 1.3 icon editor does not allow you to specify the type of icon,
so you must load one of the type you want, and then edit it.  If I
need a project icon, I usually just create a little note with the
NotePad, and use that icon (which I know is a project one).

	Hope this helps,
	Paul.