Re: delaying until I'm fully "logged in"
Re: delaying until I'm fully "logged in"
- Subject: Re: delaying until I'm fully "logged in"
- From: Skeeve <email@hidden>
- Date: Sun, 02 Dec 2007 20:17:08 +0100
Randal L. Schwartz wrote:
I have about 15 things in my Login Items. What can I use an an Applescript to
say "wait until everything in my login items is pretty much done launching" so
that I can then display a dialog to ask a question?
Hi Mr. Perl!
I don't know anything about login items so just an idea. You can, for
example, set up a list of all the processes that need to run:
property procs : { "iTunes", "Mail", "SeaMonkey" }
and then check for each process to exist:
tell application "System Events"
repeat with this_proc in procs
repeat
if process this_proc exists then exit repeat
delay 2
end repeat
end repeat
end tell
display dialog "Shal I ask you something?"
Of course one can also implement a timeout for each process so that
after checking them 5 times it gives an alert.
-- Skeeve (same nick @ perlmonks)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden