Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rate Thread Display Modes
Old 02-02-2004, 10:58 AM   #1
Jacques
All Star
 
Join Date: Jan 2002
Location: New York, NY
Posts: 967
Login Items - delay intended

I have several programs to launch, as startup items.

I've noticed that everytime I startup, every program in my Login Items list tried to launch at the same time - crunching the drive up and slowing things down.

What's the best way to force the startup process to load each program up, one at a time?

Jacques
__________________
see / hear

Joy is not the absence of suffering. It is the presence of God. -Robert Schuller

..believing, ye rejoice with joy unspeakable.. -1Peter 1:8
Jacques is offline   Reply With Quote
Old 02-02-2004, 12:24 PM   #2
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 31,938
You could write an AppleScript to launch the apps at the rate that you want.
hayne is offline   Reply With Quote
Old 02-02-2004, 01:15 PM   #3
Jacques
All Star
 
Join Date: Jan 2002
Location: New York, NY
Posts: 967
I tried to do this with the AS editor, by hitting record and launching each program - it turns out only some would record.

Does it only record programs that are AS aware? ..or Cocoa?

Jacques
__________________
see / hear

Joy is not the absence of suffering. It is the presence of God. -Robert Schuller

..believing, ye rejoice with joy unspeakable.. -1Peter 1:8
Jacques is offline   Reply With Quote
Old 02-02-2004, 01:36 PM   #4
gatorparrots
Major Leaguer
 
Join Date: Dec 2002
Posts: 441
Code:
tell application "some application" to activate
do shell script "/bin/sleep 2"
tell application "another application" to activate
do shell script "/bin/sleep 4"
tell application "big application" to activate
do shell script "/bin/sleep 20"
tell application "onelast application" to activate
gatorparrots is offline   Reply With Quote
Old 02-02-2004, 01:53 PM   #5
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
isn't there an AS delay or wait command?
mervTormel is offline   Reply With Quote
Old 02-02-2004, 02:48 PM   #6
jdhorner
Major Leaguer
 
Join Date: Nov 2002
Location: Montréal, QC, Canada
Posts: 331
yes.

it's
Code:
delay 1
where "1" is the number of seconds you want to delay.
__________________
sometimes i wish i could pipe my customers to /dev/null
jdhorner is offline   Reply With Quote
Old 02-02-2004, 04:11 PM   #7
Jacques
All Star
 
Join Date: Jan 2002
Location: New York, NY
Posts: 967
Okay, I'll try it. Thank you.

My assumption was that because the AS recorder didn't catch some of those applications launching, I would have to find another solution.

Jacques
__________________
see / hear

Joy is not the absence of suffering. It is the presence of God. -Robert Schuller

..believing, ye rejoice with joy unspeakable.. -1Peter 1:8
Jacques is offline   Reply With Quote
Old 02-02-2004, 06:10 PM   #8
gatorparrots
Major Leaguer
 
Join Date: Dec 2002
Posts: 441
Quote:
Originally posted by jdhorner
yes.

it's
Code:
delay 1
where "1" is the number of seconds you want to delay.

Due to a bug in AppleScript, the delay command usually consumes nearly 100% of the available CPU. The do shell script "/bin/sleep n"syntax consumes almost no CPU resources.

Last edited by gatorparrots; 02-02-2004 at 06:35 PM.
gatorparrots is offline   Reply With Quote
Old 02-02-2004, 06:18 PM   #9
jdhorner
Major Leaguer
 
Join Date: Nov 2002
Location: Montréal, QC, Canada
Posts: 331
and the truth is revealed. ;-)
__________________
sometimes i wish i could pipe my customers to /dev/null
jdhorner is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting 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

Forum Jump



All times are GMT -5. The time now is 10:21 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.