• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: delaying until I'm fully "logged in"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >delaying until I'm fully "logged in" (From: email@hidden (Randal L. Schwartz))

  • Prev by Date: delaying until I'm fully "logged in"
  • Next by Date: Re: delaying until I'm fully "logged in"
  • Previous by thread: delaying until I'm fully "logged in"
  • Next by thread: Re: delaying until I'm fully "logged in"
  • Index(es):
    • Date
    • Thread