Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > How can I make programs boot in order I want?

How can I make programs boot in order I want?
Thread Tools
buells1
Fresh-Faced Recruit
Join Date: Aug 2004
Status: Offline
Reply With Quote
Aug 17, 2009, 04:22 PM
 
How can I make programs boot in a certain order? I want Firefox to boot last so it is showing on the screen.
I have an iMac 24" 3.06 ghz.core duo Visit
my page at: http://www.angelfire.com/moon2/kenny_brett
     
Art Vandelay
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status: Offline
Reply With Quote
Aug 17, 2009, 04:26 PM
 
You can't. Login Items launch simultaneously. What you can do is set all the others to be hidden.
Vandelay Industries
     
carterx
Mac Enthusiast
Join Date: Jan 2007
Location: Canada
Status: Offline
Reply With Quote
Aug 17, 2009, 05:31 PM
 
i do something similar by using Apple Remote Desktop here at work with the labs so not sure if a login script can be created or not.

Basically by using "Send UNIX Shell Command" with Apple Remote Desktop I can be in a lab, send a pre saved command to enter username, wait .5second, enter password then have it "keystroke" enter, then on login I have it wait 30 seconds to the open an app in system preferences, then 10 seconds later opens up another app in the background.

This works great for me but unsure if this can be made into one script perhaps someone else can help with the script.
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Aug 17, 2009, 06:49 PM
 
Create a simple shell script:

#!/bin/sh
open /Applications/app1 && open /Applications/app2 (etc.)

give it executable permissions and run it
     
Art Vandelay
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status: Offline
Reply With Quote
Aug 17, 2009, 07:17 PM
 
You still won't guarantee which one is frontmost with that script.
Vandelay Industries
     
CharlesS
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Aug 17, 2009, 08:20 PM
 
Then finish the script with:

osascript -e 'tell application "Firefox" to activate'

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Art Vandelay
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status: Offline
Reply With Quote
Aug 17, 2009, 09:01 PM
 
You'll probably need a delay in there to be sure everything is finished loading before telling Firefox to activate. Otherwise, a slow loading app can still end up being frontmost.
Vandelay Industries
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Aug 17, 2009, 09:08 PM
 
Why not, Art? My script opens this apps in serial, not in parallel.
     
Art Vandelay
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status: Offline
Reply With Quote
Aug 17, 2009, 09:29 PM
 
Just because you launch apps in serial, it doesn't necessarily mean they finish loading in that same order. Some apps will bring themselves frontmost when finished loading.
Vandelay Industries
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Aug 17, 2009, 09:43 PM
 
I was thinking that the open command didn't return until the app was launched and responsive, but it looks like it returns once the launch of the app has been invoked. Therefore, you're right. It looks like piecing together CharlesS' Applescript command and some more Application or my shell script will do the trick though.
     
turtle777
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Aug 17, 2009, 10:25 PM
 
Originally Posted by Art Vandelay View Post
You can't. Login Items launch simultaneously. What you can do is set all the others to be hidden.
Mail will never be hidden, right? It's that ancient OS X bug.

-t
     
- - e r i k - -
Posting Junkie
Join Date: May 2001
Location: Brisbane, Australia
Status: Offline
Reply With Quote
Aug 17, 2009, 11:26 PM
 
Originally Posted by turtle777 View Post
Mail will never be hidden, right? It's that ancient OS X bug.

-t
As far as I can tell still no go in Snow Leopard for that one either.

I do have a security certificate dialog that always need to be OK'd every time Mail opens though, so that might interfere with it.

[ fb ] [ flickr ] [] [scl] [ last ] [ plaxo ]
     
Simon
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Aug 18, 2009, 03:22 AM
 
Originally Posted by turtle777 View Post
Mail will never be hidden, right? It's that ancient OS X bug.
That's not a bug! It's there by design! Mail may never be hidden at launch! How dare you!
     
CharlesS
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Aug 18, 2009, 04:51 AM
 
Holy crap, this thread just gave me the idea of the way to actually get Mail to hide on login.

Do launch your login items via the script. And then, do this:

osascript -e 'tell application "System Events" to set visible of process "Mail" to false'

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Simon
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Aug 18, 2009, 05:16 AM
 
Blasphemy!
     
Art Vandelay
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status: Offline
Reply With Quote
Aug 18, 2009, 12:06 PM
 
Originally Posted by CharlesS View Post
Holy crap, this thread just gave me the idea of the way to actually get Mail to hide on login.

Do launch your login items via the script. And then, do this:

osascript -e 'tell application "System Events" to set visible of process "Mail" to false'
You'll want a delay on that one too. Mail does hide but then unhides once it checks for new mail.

If you take your accounts offline, it will stay hidden.
Vandelay Industries
     
CharlesS
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Aug 18, 2009, 03:08 PM
 
Originally Posted by Art Vandelay View Post
You'll want a delay on that one too.
Which can be done easily enough.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Art Vandelay
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status: Offline
Reply With Quote
Aug 18, 2009, 03:30 PM
 
Quite right, didn't mean to imply it wasn't.
Vandelay Industries
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 03:27 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,