When I try it, script given the S protection bit and a tool icon that have CLI in it's tooltypes, I clearly get "Execute unknown command" before any line of code in the script has been started.
Since I don't know how, could you please tell me how you would start a script by just double clicking an icon in workbench without having to type anything manually and only using KS3.0 ROM commands (no on disk commands like IconX, Execute etc)?
I think Thomas meant you to use
newshell con:0/0/9999/9999/Fullscreen_Shell/CLOSE/WAIT from script2as the default tool in a project icon. I haven't tried it but it looks like it would work.
EDIT: No, don't try that as it doesn't work under 3.1 (like he said it wouldn't). If you get rid of the "newshell" part and make the default tool "con:0/0/...." then it opens a window but I don't think it's possible to make it execute commands. Thomas may know a trick or two though...
EDIT2: If you look at the Workbench:System/Shell you'll see that it uses the default tool 'CLI'... CLI is 1180 bytes (less bytes than IconX), so this is a possibility. Make the project icon, make its default tool 'CLI' and then add some tooltypes. CLI must be somewhere in the path (sys or c etc)
WINDOW=CON:0/0/500/100/title/CLOSE/WAIT
FROM=yourscriptYour icon needs to be just 1 pixel with no second image to save space.