www.gryphel.com/c/minivmac/extras/autoquit - feedback


a Mini vMac Extra


autoquit-1.1.1.zip (info) a zipped hfs disk image and checksum file. The disk image can be mounted with Mini vMac. Includes source code.

AutoQuit assists in 'wrapping' an application for the Mac Plus, so that you can use it with Mini vMac more as you would a native application for your machine. AutoQuit will work with all systems prior to System 7, when not using MultiFinder. For applications that require System 7, you can use AutQuit7.

Discussion and Example

The basic way to use Mini vMac is to open a boot disk image, which brings up the Finder. From there you can launch an application, such as the game 'Continuum'. When you're done, you quit from 'Continuum'. This brings you back to the Finder, where you can choose the 'Shut Down' command, and then you can safely quit Mini vMac.

You can save one step if you prepare a boot disk image that contains 'Continuum', and set the 'Start Up' application to the game. Now booting from this disk image will launch the program 'Continuum' directly, skipping the Finder.

But when you quit from 'Continuum', you still end up back in the Finder, where you have to 'Shut Down' and quit Mini vMac.

You can save these extra steps by replacing the Finder on the boot disk image with the file 'AutoQuit'. Now quitting from 'Continuum' will automatically 'Shut Down' and quit Mini vMac.

AutoQuit is just a simple program that immediately shuts down a Macintosh, and, when running inside Mini vMac, tells Mini vMac to quit. You use it by setting an application to be the Start Up application of a bootable disk, and then replacing the Finder with AutoQuit, so that AutoQuit is run when the application quits. In more detail:


* Download and unzip AutoQuit, to get the AutoQuit disk image.

* Create a bootable system disk image containing System 6.0.8 or earlier.

* Install an application on this disk image, and verify that it works properly.

* In the Finder, select the icon of the application, and choose the "Set Startup..." command from the Special menu.

* Boot from a different disk image.

* Mount the original disk image with the application, and open the System Folder on it.

* Drag the file 'Finder' into the Trash.

* Choose 'Empty Trash' from the Special menu.

* Mount the AutoQuit disk image, and copy the file 'AutoQuit' into the System Folder.

* Rename the copy of 'AutoQuit' to 'Finder'.

* Close the System Folder.

* Choose 'Shut Down' from the Special menu.

More details

If the shift key is held down, AutoQuit will shut down the emulated machine, but won't quit from Mini vMac. This makes it a bit easier to immediately use another disk image.

AutoQuit will check to make sure that it is running inside of Mini vMac before trying to make Mini vMac quit. This means it is safe to use in other emulators. So you can prepare a disk image with a wrapped application for Mini vMac, and still use it with another emulator.

It is also safe to use it on a real machine. This is useful with "CopyRoms". You can set the CopyRoms program as the Start Up application on a floppy disk, and replace the Finder with AutoQuit. You can then use this floppy to acquire the ROM image from a Macintosh, even if the keyboard, mouse, and/or screen don't work.

Some programs will not work as the Start Up application. DoLaunch provides a fix for this.

You can redistribute AutoQuit and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the included file COPYING.

AutoQuit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.


October 6, 2012

As reported by "David", it didn't work in the Basilisk II emulator. Copied fix from the Mini vMac build system for the code intended to detect when running in Mini vMac.


If you find AutoQuit useful, please consider helping the Gryphel Project, of which it is a part.

gryphel logo, 1K
www.gryphel.com/c/minivmac/extras/autoquit - feedback
copyright (c) 2012 Paul C. Pratt - last update 10/6/2012