Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!ncar!gatech!udel!mmdf From: LASKEY@svax05.pcr.co.uk Newsgroups: comp.sys.amiga.misc Subject: Executing script files from icons Message-ID: <43333@nigel.ee.udel.edu> Date: 31 Jan 91 17:19:59 GMT Sender: mmdf@ee.udel.edu Lines: 24 Hi all, In article <1222@sjfc.UUCP>, bpv9073@uucp.sjfc wanted to know how to execute a script file from an icon. The only requirment is WB1.3. 1. Create your script file of assignments. 2. Create a PROJECT icon (such as Shell) with the .info extension. I tend to draw my own icons and then use a program called SIT to convert it to a project icon. SIT comes as part of the package of Spritz Paint which came with my A590 hard drive. 3. Last, you must inform AmigaDOS that your icon is linked to a script file. From the CLI, type PROTECT filename +SE This modifies the SCRIPT and EXECUTABLE protection flags. Now clicking on the icon will execute your scriptfile. Alternatively, from the CLI, just typing in the script filename will execute it. (ie AmigaDOS EXECUTE command is not required). ================================================================================ Regards, Mike Laskey || Go get 'em Steiner brothers!!! UUCP LASKEY@UK.CO.PCR.SVAX05 || Argghhh! ================================================================================