Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: ^Dagon^ on February 25, 2011, 05:38:05 PM
-
I want to create an .info file for a file that doesn't have one but I don't know how. I tried to copy another .info file and rename it, but it changed the display of the file I was interested in.
Any ideas?
-
Which OS revision?
With OS3.5/3.9 and RAWBInfo you can use the menu and tell it to create a default icon.
With OS3.1 and older you typically use a 3rd party tool from aminet to do it, or you copy a .info file like you did.
-
Here's one of those aforementioned tools on Aminet: http://aminet.net/package/util/wb/AddIcon
DOpus has this functionality built-in, too.
-
You can also drop the file into Icon Edit and select Save from the menu, this will create a new icon, and you can edit the way it looks too.
-
Just create a new project in icon editor, then name it as the file or drawer you want.
-
The easy way is with Dopus, select the file and "Add Icon". this takes the default icon for your file.
You can change this icon later, by select with the right button, then in menu "icons/info", and drop over the image the icon you like. Don't forget to "Save"
Other way, is to open the drawer with your file, right button "window/show all", and then your file shows you the default icon for it. Select the file and with right button "Icons/Store", now your Icon is saved, and the .info created.
-
Many of the above ways work and I would like to thank you for your help.
But if I want to keep the file's display image (it does have one, even though it lacks an .info file), is there a way to extract it from the file and use it in an .info file?
-
Chances are if he doesn´t know how to copy an icon, he probably doesn´t know what to do with the file anyways.
-
So, tell the whole story. What is this file, what .info file did you use. How did the display change. What did you do to display the file. Do you know what tooltypes are. Do you know how to do assigns and snapshot windows & icons? have you realized you can set the stack from a project icon? Are you running UAE on a FAT8 partition?
-
Many of the above ways work and I would like to thank you for your help.
But if I want to keep the file's display image (it does have one, even though it lacks an .info file), is there a way to extract it from the file and use it in an .info file?
There is nothing to extract in the file. If there is no .info, a default icon is used. The default icon is hard coded into Workbench or, since OS 3.5, stored in envarc:sys.
All methods described above (except the "copy another .info") should give you the default icon.
-
For just about all versions of Workbench there are basically five types of .info files (tool icons, project icons, drawer icons trash and disk icons). You want to use the right type for the file your adding an icon to. A drawer or disk icon won't work right for a project file, and a project icon won't work right for a program. IconEdit is the original Amiga program for creating and editing icons. The Workbench information menu item is the other way users access an icon's details.
If you want an icon for a program you should copy/create a tool icon to the same directory as the file and give it the filename with a .info extension. (filename needs filename.info for its icon file) Edit the icon stack size and tooltypes to match the needs of the program with workbench's menu item information... There are odd programs which don't understand how to work right when run from workbench because of the differences programs see internally when running from workbench and not a shell command line. An Icon's tooltypes are analogous to shell command line options for the program called.
If the file is a data file, then you want to copy/create a project icon to the same directory as the file and name it the same as the filename with .info as the extension. Edit it so the "default tool" is set to whatever program you want to open the file with the workbench menu item information...
If the "file" is really a directory you want to copy/create a drawer icon.
If the "file" is really a disk volume root directory you want to copy/create a disk icon.
There's one other type of icon (AppIcon) that programs post Workbench 2.0 can create to exist on the workbench only while the program is running so when a user drops other icons onto it, Workbench will notify the program to use those files.
-
Ok, I found what I wanted just a few minutes after my second post. It was Cammy's advice what I was looking for. As I can understand from the other posts, the file was displayed with a default icon since it didn't have an accompanying .info file. All I wanted was to make an .info file with the default icon so as I could customize the place where the file appeared and make it permanent with a snapshot.
I am new to Amiga OS but I am learning fast.
Have a nice day!
-
For just about all versions of Workbench there are basically five types of .info files (tool icons, project icons, drawer icons trash and disk icons). You want to use the right type for the file your adding an icon to. A drawer or disk icon won't work right for a project file, and a project icon won't work right for a program. IconEdit is the original Amiga program for creating and editing icons. The Workbench information menu item is the other way users access an icon's details.
If you want an icon for a program you should copy/create a tool icon to the same directory as the file and give it the filename with a .info extension. (filename needs filename.info for its icon file) Edit the icon stack size and tooltypes to match the needs of the program with workbench's menu item information... There are odd programs which don't understand how to work right when run from workbench because of the differences programs see internally when running from workbench and not a shell command line. An Icon's tooltypes are analogous to shell command line options for the program called.
If the file is a data file, then you want to copy/create a project icon to the same directory as the file and name it the same as the filename with .info as the extension. Edit it so the "default tool" is set to whatever program you want to open the file with the workbench menu item information...
If the "file" is really a directory you want to copy/create a drawer icon.
If the "file" is really a disk volume root directory you want to copy/create a disk icon.
There's one other type of icon (AppIcon) that programs post Workbench 2.0 can create to exist on the workbench only while the program is running so when a user drops other icons onto it, Workbench will notify the program to use those files.
Don't forget about the bugs in IconEdit!! Google it.