![]() LaunchApplication is a nightmare of hierarchical structs and pointers. Shut Down works, but the LaunchApplication API in Process Manager is taking some time to implement. Right now I'm implementing the Apple Events manually in C++. But it still works WAY better than using an AppleScript. ToolServer has some lag and weirdnesses as it loads up all of the MPW interfaces before executing the script, and it can't be used as a library in an application (if anyone knows otherwise, you would save me so much time). So far, it's fully functional when using ToolServer and an MPW StartupTS script as a Finder replacement. You should be able to specify the absolute path of the application in a Finder.cfg file in the System Folder- as using an alias in Startup Items is notoriously unreliable. I've been working on a Finder replacement in C++/MPW called "WrapperFinder" that actually issues direct commands to Toolbox to launch the application and then force a (usually clean) shutdown after the application has been quit. But that doesn't cause the OS to shut down after the application is quit so the user gets stuck. It also boots faster and prevents Finder or the user from messing with the OS and destabilizing the wrapped program. It's much better to replace the Finder with the application. Sometimes shut down doesn't work for who knows what reason. It's not a hugely reliable solution though. I've tried using a variable for the application name, but that doesn't seem to work, at least not on 7.55. If the two names don't match, then the script will simply shutdown SheepShaver or Basilisk II after a few seconds. One important thing: Make absolutely certain that the application name specified in two parts of the script is exactly the same as the name of the application itself. (For example, "delay" doesn't exist in system 7.5.5, so I used a kludge workaround instead.) I know there are more efficient ways of writing it, but the more efficient ways don't seem to work in ancient Macs. Test it by launching it OUTSIDE the Startup Items folder before actually putting it in the Startup Items folder. When saving, set Kind to Application add checkmarks next to "Stay Open" and "Never Show Startup Screen." Years used runonly applescripts to detection install#To create this script, copy the code below into the AppleScript editor (you may need to install it separately) inside the SheepShaver/Basilisk II system. The first time you run it, but only the first time, it will ask you where the application is located. When you close the application, the emulator will shut down. When the emulator starts up, the script will launch the application you specify in the script. Here's an AppleScript that can be put into the Startup Items folder in the System Folder in a SS/BII system and it will do this: There are times when I want to run only a single program in SheepShaver or Basilisk II. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |