I have a couple dozen old games that I'm working on getting set up in OS 9, and I've been using AppleScript to simplify the process of launching them. Many of the games require the CD to be mounted, so I have my script mount a disk image, set the screen resolution and color depth if needed, and then launch the game.
That's all pretty simple to script, but when the application is closed I'd like to have the screen resolution and color depth set back to normal and have the disk image unmounted—basically have the script clean up after itself. I've come across a few ways to accomplish that on OS X, but nothing on the classic systems. Does anyone know if it's possible to do what I'm wanting to do?