Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Launch Classic at login without the splash screen Classic
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.
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[11,660 views]  

Launch Classic at login without the splash screen | 17 comments | Create New Account
Click here to return to the 'Launch Classic at login without the splash screen' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Launch Classic at login without the splash screen
Authored by: sixthring on Aug 05, '03 12:12:30PM

Should the Contents folder be inside the Classic Starter.app?

Other than this possible error, I can not get this to work. Can you send me a working copy of this file so I can compare it to mine? email it to getzt@mcsd.k12.pa.us



[ Reply to This | # ]
Launch Classic at login without the splash screen
Authored by: samsprograms on Aug 06, '03 09:50:42AM

Oops! This is my first hint, I guess I need to work on my proofreading. You should cd to your app before making the contents folder. Can someone tell me how to fix this, or can only an administrator change the hint?



[ Reply to This | # ]
Launch Classic at login without the splash screen
Authored by: bustthis on Aug 07, '03 01:41:20AM

is it normal that the console logs report /dev/disk1s9
thousands of times over and over? this is what happens when i run this.



[ Reply to This | # ]
Launch Classic at login without the splash screen
Authored by: Kemul on Aug 07, '03 02:35:01AM

I only see /dev/disk0s9 reported twice on my console. I'm not familiar with Classic, but maybe you work a lot with Classic and it's loading a lot of extensions or something?



[ Reply to This | # ]
Launch Classic at login without the splash screen
Authored by: bustthis on Aug 07, '03 12:45:23PM

when i use this as a login item, it will display this message over and over agin in the console. when i launch it manually it only diplays it twice. i don't think it has anything to do with extensions.



[ Reply to This | # ]
A Must for School Labs
Authored by: amerpie on Aug 05, '03 12:42:18PM

This is a great hint for those who manage school labs. When Classic starts, it displays a big old "Stop" button just begging for little Tommy to press, thus closing Classic and preventing Classic apps from running. With this hint implemented correctly, that's no longer a problem.



[ Reply to This | # ]
Launch Classic at login without the splash screen
Authored by: Kemul on Aug 05, '03 01:08:34PM
Well, after some modifications, this hint works fine on my laptop.
My zipped app based on this hint can be found here.
After unzipped, the app can be placed under ~/Library/MyStartupItems.

[ Reply to This | # ]
Yahoo doesn't allow direct link
Authored by: Kemul on Aug 05, '03 01:12:30PM

Sorry, I didn't know that...

If you're using Safari, just option-click the link.

Or you can copy-paste
http://www.geocities.com/kemul1980/files/CS.zip



[ Reply to This | # ]
Launch Classic at login without the splash screen
Authored by: matx666 on Aug 05, '03 05:18:36PM

thanks. the modified file works. the one i tried to make did not. this is helpful. this will be useful in the computerlabs i manage. keep classic in the background. :)

-x



[ Reply to This | # ]
Launch Classic at login without the splash screen
Authored by: renegade01 on Aug 06, '03 12:05:32PM

...first time here and found this terrific hint. Works like a charm (once I figgered out how to get it to launch at startup...also a newbie to OSX). Just wanted to send a thumbs up...



[ Reply to This | # ]
Launch Classic at login without the splash screen
Authored by: Kemul on Aug 06, '03 06:32:48PM

Number six of the original hint is how you would do to run this every startup.

In detail:
1. Open System Preferences... (under apple symbol on the top left).
2. In personal section, click Login Items.
3. Click Add... and find the application.

That's it, I think. :)



[ Reply to This | # ]
Launch Classic at login without the splash screen
Authored by: bluehz on Aug 07, '03 12:19:47AM

This in itself is a nice little hint for starting classic from the CLI:

/System/Library/CoreServices/Classic\ Startup.app/Contents/Resources/TruBlueEnvironment &

... is there an equal to that for shutting down Classic from the CLI?



[ Reply to This | # ]
Launch Classic at login without the splash screen
Authored by: Kemul on Aug 07, '03 01:20:25AM

Well, the only way I can think of to shut down TruBlueEnvironment from CLI is to 'kill' it.

killall -m TruBlue

Any other ideas?



[ Reply to This | # ]
Launch Classic at login without the splash screen
Authored by: bluehz on Aug 07, '03 07:50:16PM

yeah thats what I was thinking... I hate to just kill a running OS though which may have apps, dosc, etc. open. After looking at the kill man pages a bit more I was thinking maybe a kill -6 ("quit"_ may be more in order. Tried it last night on a Classic I started up via CLI and it seemed to shut it down... but I did not have any open apps, docs in Classic running. I personally am not sure of the ramifications of a "Kill -6" though.

Common kill signals...
1 HUP (hang up)
2 INT (interrupt)
3 QUIT (quit)
6 ABRT (abort)
9 KILL (non-catchable, non-ignorable kill)
14 ALRM (alarm clock)



[ Reply to This | # ]
Launch Classic at login without the splash screen
Authored by: GaelicWizard on Aug 07, '03 09:10:21PM
osascript -e 'tell application "Classic Support" to shut down'
works MUCH better, as it tells classic's pseudo-finder-replacement to actually shut down. I'm not at my box now, so I can't test. experiment and all will become clear. :-)

---
Pell

[ Reply to This | # ]

Launch Classic at login without the splash screen
Authored by: samsprograms on Sep 01, '03 07:42:01AM
I am sorry for the error in the hint...
You should use
cd \"Classic Starter.app\"
after
mkdir \"Classic Starter.app\"
This should make is work right, but make sure you start from scratch...

[ Reply to This | # ]
Launch Classic at login without the splash screen
Authored by: Magnus on Dec 01, '03 12:13:38PM
It is generally better to use LSBackgroundOnly set to "true" instead of NSUIElement when trying to hide an application. When you use LSBackgroundOnly there is no icon displayed in the dock at all. With NSUIElement there is a brief display as the application starts.

Also since people seem to be experiencing difficulty:

Note there are two lines which may get clipped depending on the screen width of your browser. They are marked at the begining and end. I'd suggest pasting the following into a text editor so that you can format the lines properly. After formatting you should be able to paste the following into the command line.

cd ~
mkdir "Classic Starter.app"
cd "Classic Starter.app"
mkdir Contents
cd Contents
# One line -Begin Line-
defaults write "~/Classic Starter.app/Contents/Info" LSBackgroundOnly "true"
# One line -End Line-
mkdir MacOS
cd MacOS
echo '#!/bin/sh' >>"Classic Starter"
# One line -Begin Line-
echo '/System/Library/CoreServices/Classic\ Startup.app/Contents/Resources/TruBlueEnvironment &' >>"Classic Starter"
# One line -End Line-
chmod 755 "Classic Starter"


[ Reply to This | # ]