Welcome, Guest. Please login or register.

Author Topic: Are there shortcuts in Workbench 3.1?  (Read 3603 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline sim085Topic starter

  • Hero Member
  • *****
  • Join Date: Aug 2008
  • Posts: 958
    • Show only replies by sim085
Re: Are there shortcuts in Workbench 3.1?
« Reply #14 from previous page: October 02, 2009, 08:09:16 PM »
Quote from: AmigaHeretic;524546

'ClickToFront' is less than 4k in size.  A shortcut in Windows probably is larger in size than that. ;-)


I know but I just want everything to be organised.

At the moment I have a problem. I created my scrypt under SYS: and a new icon (project) in a partition Documents: however I cannot understand how to make this icon execute the script in SYS!
 

Offline meega

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 952
    • Show only replies by meega
Re: Are there shortcuts in Workbench 3.1?
« Reply #15 on: October 02, 2009, 08:59:41 PM »
Put them in the same directory... they should be named "myscript" and "myscript.info" (or any other name of your choosing, but there must be a file and a file.info in the same directory).


Ed: alternatively, look at the Shell icon, "FROM=S:Shell-Startup" tooltype as an example of how to use a different file. (This might be restricted in how you can use it.)
« Last Edit: October 02, 2009, 09:03:22 PM by meega »
:)
 

Offline sim085Topic starter

  • Hero Member
  • *****
  • Join Date: Aug 2008
  • Posts: 958
    • Show only replies by sim085
Re: Are there shortcuts in Workbench 3.1?
« Reply #16 on: October 02, 2009, 09:35:15 PM »
Thanks again. I managed to make the script run by using the FROM parameter as you suggested :) I then used the RUN command to run the wanted program.

I now just have to understand how I can use the CLI to run a script without actually opening the CLI window.

Rather then asking one question at a time (hopefully not annoying you) - is there a place where I can learn more about these things.
 

Offline AmigaHeretic

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 821
    • Show only replies by AmigaHeretic
Re: Are there shortcuts in Workbench 3.1?
« Reply #17 on: October 02, 2009, 09:56:41 PM »
Quote from: sim085;524562
Thanks again. I managed to make the script run by using the FROM parameter as you suggested :) I then used the RUN command to run the wanted program.

I now just have to understand how I can use the CLI to run a script without actually opening the CLI window.


Do you mean run the script from the icon?

in the C folder is a program called iconX  (think it comes with the OS)

If you right click on the Icon for your script and go to properties, where it says 'Default Tool'  put

C:iconx

That should make it so the script will start just like you went to CLI and ran the script.


As for inside the script you can use run >nil: instead of just run which will keep CLI windows comming up everytime a run command is issued in the script.
A3000D (16mhz, 2MB Chip, 4MB Fast, SCSI (300+MB), SuperGen Genlock, Kick 3.1)
Back in my day, we didn\'t have water. We only had Oxygen and Hydrogen, and we\'d just have to shove them together.
 

Offline sim085Topic starter

  • Hero Member
  • *****
  • Join Date: Aug 2008
  • Posts: 958
    • Show only replies by sim085
Re: Are there shortcuts in Workbench 3.1?
« Reply #18 on: October 02, 2009, 10:10:30 PM »
Using

Run >NIL: myscript
EndCLI

I managed to run the script and close the CLI window. This is good enough for me for now. However I am intrested to know if it is possible to run the script without actually opening the CLI window (maybe through some other way?).

I tried to play a little with the IconX - however I think this is only usefull when the script and the icon are in the same directory, which is not my case.