Mac OS 9 Lives

Classic Mac OS Software => System Utilities & File Management => Topic started by: kahuna on June 08, 2022, 09:34:53 PM

Title: Associate file types to apps
Post by: kahuna on June 08, 2022, 09:34:53 PM
Hello, it's me again, the n00b guy  -afro-

I'd like to automatise the process of mounting a .toast .iso ... CD image using the "virtual CD/DVD-ROM utility"
Ideally, double click on an image file and that will basically mount it automatically.
Is that possible?

Thanks!
Title: Re: Associate file types to apps
Post by: DieHard on June 08, 2022, 09:59:15 PM
Not exactly what you are asking for... but maybe related

When I would image Educational/Adventure game CDs for Junior High school kids I would use ShrinkWrap:
https://macintoshgarden.org/apps/shrinkwrap

ShrinkWrap images will mount via the finder by a simply double click; you can also do some really cool things like make a whole bunch CD images auto-mount on boot by placing the shrink wrap image alias items in the "startup items". 

So... I then would use a program like "kids menu" which locked them out of all the OS features and gave them a simple desktop, the iMac would boot, automount a shitload CD images (5 to 15 disks), and then give them access to the whole library of programs that thought the actual CDs were mounted while being "kid proof" and not letting them destroy the system

Sorry for the tangent, but ShrinkWrap maybe a solution for you with the double-click mounting needs
Title: Re: Associate file types to apps
Post by: Bolkonskij on June 09, 2022, 02:45:37 AM
Mac OS does not follow the rather stupid file extension principles of the modern OSes. On Mac OS every file has a type/creator code that tells the OS which program created / edited this file. It allows exactly for what you ask for - You double click it, it opens its "parent application".

I assume your problem stems from the fact that you downloaded stuff from the internet, where this info got lost during the transfer and forces you to manually re-assign it with programs such as FileType etc.

There's been a plethora of such programs for updating type/creator codes, some of which allow to create "droplets". You could put one of those on your desktop. All you'd then have to do is to drag those iso files with lost type/creator code onto the droplet to set them for future use with your preferred application.

You may want to go and explore the Macintosh Garden for type/creator code apps in the utilities section and see which one serves you best.
Title: Re: Associate file types to apps
Post by: IIO on June 09, 2022, 03:08:59 AM
to open a file with another app than the one which is currently launched by opening it, you´d simply change its creator code.

there are dozens of tools for that kind of thing, and ABFA is probably the best

https://www.publicspace.net/

their "major" OS9 app was called file manipulator.

https://www.macintoshrepository.org/7832-file-manipulator

make sure to work on copies only, until you understand what you do and how to revert it.

to change the association to a new app, you need to know what the creator code of this app is: you will find it in every file it creates.
Title: Re: Associate file types to apps
Post by: Greystash on June 09, 2022, 03:20:16 AM
You can actually do this with an application called Virtual CD AutoTyper which is usually bundled with the Virtual CD/DVD-ROM Utility - download here (https://mac-classic.com/articles/virtual-cd/). Virtual CD appears to have an auto-mounting function associated with the file type AutoTyper applies to the disc image.
Title: Re: Associate file types to apps
Post by: kahuna on June 10, 2022, 07:31:56 AM
Thanks a lot for the insights folks!
Title: Re: Associate file types to apps
Post by: kahuna on June 14, 2022, 10:45:49 AM
By the way, it's good to read the Virtual CD manual as the AutoTyper tool requires you to do a "desktop file rebuild" before it can actually starts working  ::)
Title: Re: Associate file types to apps
Post by: IIO on June 15, 2022, 02:19:19 AM
why would you need to rebuild the desktop?
Title: Re: Associate file types to apps
Post by: kahuna on June 27, 2022, 09:37:54 AM
Because it is what the documentation indicates  ::)

It didn't work until I rebuilt the desktop file.
Title: Re: Associate file types to apps
Post by: IIO on June 27, 2022, 03:38:07 PM
that seems strange and should not happen.
Title: Re: Associate file types to apps
Post by: Greystash on July 02, 2022, 10:57:43 PM
I can confirm that rebuilding the desktop does effect the AutoTyper. For some reason after reinstalling my OS AutoTyper disassociated itself from being able to read any disc image. I couldn't drag anything into the app so I tried a desktop rebuild as kahuna mentioned and after the next boot it started working as normal. I'm not sure how this affects what sort of file types it will accept?
Title: Re: Associate file types to apps
Post by: IIO on July 02, 2022, 11:36:06 PM
i would recommend to use one of the various other tools which do the same, but without that insane requirement to rebuild or update the desktop.