To attach an icon to a file or directory, you can create an icon with the IconEdit tool. However, it is often easier just to copy an existing icon with a Shell command.
You must copy a .info file of the right icon type, giving it a name that matches the file or directory to which you are attaching it plus the .info extension. If necessary, use the Information menu item to adjust the Default Tool of a copied Project icon, or the Tool Types of a copied Tool icon, as appropriate for the file.
|
The capitalization of the name under the icon matches that given in the COPY command, regardless of the capitalization of the associated file or directory. |
To attach an icon to a file called PCX in the DataTypes directory, copy the .info file of an existing DataType in the directory:
1> COPY DataTypes/ILBM.info TO DataTypes/PCX.info
An icon titled PCX appears in the DataTypes window when you open it or choose Update from the Window menu.
To attach a custom icon to a disk called VidTools, copy the desired disk-type .info file to the root directory of the disk, giving it the name disk.info:
1> COPY SYS:disk.info TO VidTools:disk.info
You must eject and reinsert the disk or reboot for a new disk icon to appear on the Workbench.
To make creating and editing scripts easier:
Create a script containing the following lines, and save it as S:Edscr. (For an example of how to create a script, see "Creating a User-startup File" on page 8-8.)
.KEY script/A
ED S:<script>
FAILAT 11
IF EXISTS S:<script>
PROTECT S:<script> srwd
ENDIF
Set the script's protection bit by entering PROTECT S:Edscr srwd. Now using Edscr you can create and edit scripts without having to decide where to put them or remember to set their s bit. Just enter Edscr followed by the name of a script.
When you save and exit from ED, the script you worked on is saved in the S: directory under the name you gave. Its s protection bit is set automatically so that you can run the script from a Shell without needing the EXECUTE command.