Hi,
Post by John BrooksPost by i***@gmail.comWhat is your vision for maintaining the file/aux type mapping for launching applications via BASIS.SYSTEM? Has any progress or further thought happened here?
I'm not sure what techniques GS/OS 6.0 Finder uses for managing and mapping file/aux types, and whether it is worth trying to use or mimic parts of that system.
The GS/OS 6.0 Finder uses icon files. The finder searches for icon
files in a folder named 'Icons' on every mounted volume.
The major purpose of icons files is to provide a graphic
representation (aka icon) for documents of a certian "type". But
beside that graphic representation icon files contain the absolute
path to the program to open documents of that type.
One icon file can contain the information of many document "types". A
document "type" is defined by a tuple of
- filename mask
- file type
- aux type
There are graphical editors to edit such icon files. On
http://www.whatisthe2gs.apple2.org.za/icon-mania/ there's a screenshot
of such an icon editor showing the dialog to edit the document type
definition and program to load documents of that type -
Loading Image...If the program given for a document type is a ProDOS 8 program and the
user opens a document of that type the Finder switches to ProDOS 8 and
starts the program in question using the ProDOS 8 startup file
protocol to provide the document path to the program. So from my
perspective it's the very functionality we're looking here to provide
for ProDOS 8.
John already stated that he sees two repesentations for the
file/aux-type-to-program-mapping:
1. An internal representation being part of the BASIS.SYSTEM file
optimized for quick access.
2. An external representation in a separate file.
All this leads me to the proposal of using a GS/OS Finder icon file as
this external representation. The file format is fully documented -
http://www.gno.org/pub/apple2/doc/apple/filetypes/ftn.ca.xxxx
I suggest to put all mappings relevant for BASIS.SYSTEM in a single
icon file with the fixed name 'Icons/ProDOS.icons'. It's not uncommon
to use the plural if there are multiple icons in an icon file.
I propose a ProDOS 8 text mode program that is able to read and write
this very file. The program is an interactive editor for the mappings
in that file. Additionally the program allows to export the mappings
to BASIS.SYSTEM.
That ProDOS 8 program doesn't care at all about the actual icon being
part of each mapping created. Rather it just uses the same icon for
all mappings in ProDOS.icons. That single icon is part of the program
itself and identical to the GS/OS icon for ProDOS and BASIC.System,
see -
Loading Image...Of course the user is free to alternatively use a GS/OS based
graphical icon editor to edit ProDOS.icons in just the same way he
would edit other icon files. This way he could create individual icons
for the mappings. Such a user would then use the ProDOS 8 text mode
program only for reading ProDOS.icons and exporting the mappings to
BASIS.SYSTEM.
Anyway, with this approach any mapping created for BASIS.SYSTEM would
automatically be used in the very same way by the GS/OS 6.0 Finder
too.
If there's a momentum to welcome this proposal I'm willing to
contribute the ProDOS 8 program described. I'd create it using the
cc65 C compiler.
I'm in contact with John regarding this topic so the ProDOS 8 program
would be delivered together with BASIS.SYSTEM.
Please provide feedback!
Regards,
Oliver