Launch Classic at login without the splash screen

Aug 05, '03 10:35:00AM

Contributed by: samsprograms

If you've set Classic to start at login, you probably agree that the Startup window gets in the way. This hint will explain how to make Classic start without displaying anything. Also, for some reason, it makes Classic start a little faster!

Read the rest of the hint for the how-to...

Instructions:

  1. Make the app's directory. I created a folder in ~/Library called "MyStartupItems". Choose any folder (but use that instead for the rest of the steps), and then make the app's folder in it:
    % cd ~/Library
    % mkdir MyStartupItems
    % cd MyStartupItems
    % mkdir "Classic Starter.app"
    % mkdir Contents
    % cd Contents
  2. Make an Info.plist file to stop the app from displaying a dock icon:
    % cd "Classic Starter.app"
    % defaults write "~/Library/MyStartupItems/
        Classic Starter.app/Contents/Info" NSUIElement "1"
    Note that the above "defaults" line is shown on two lines but should be entered as one with no spaces between the "/" and "Classic...".

  3. Make a folder for the executable called "MacOS"
    % mkdir MacOS
    % cd MacOS
  4. Make an executable file called "Classic Starter"
    % touch "Classic Starter"
    % chmod +x "Classic Starter"
    
  5. Add some code to "Classic Starter". Use your favorite text editor and paste the following code into the "Classic Starter" file we just created (I use pico):
    #!/bin/sh
    /System/Library/CoreServices/Classic\ Startup.app/
    Contents/Resources/TruBlueEnvironment &
    
    Note that the above "/System" line is shown on two lines but should be entered as one with no spaces between the ".app/" and "Contents...".

  6. Add your new app as a login item in the "Login Items" preference pane.
The icon for the app will look like a folder; change it if you like.

Comments (17)


Mac OS X Hints
http://hints.macworld.com/article.php?story=2003080313171155