Re: Detecting when application launch has completed (OS X)
Re: Detecting when application launch has completed (OS X)
- Subject: Re: Detecting when application launch has completed (OS X)
- From: Kai <email@hidden>
- Date: Mon, 20 Jan 2003 09:30:50 +0000
on Sun, 19 Jan 2003 11:06:17 +0000, Mr Tea <email@hidden> wrote:
>
Is there a generalised way to detect if an application has finished
>
launching (ie, nothing else is going to happen without user input)?
>
>
I'd like to launch several applications in sequence, without the launches
>
overlapping. So far, the best I've been able to manage is putting a 'lowest
>
common denominator' delay into the loop (the list of apps varies).
>
Everything else I've tried results in the dock looking like a kids
>
trampoline party.
>
>
What would be ideal is something like:
>
>
repeat until starting up of process myApp is false
>
[brief delay]
>
end repeat
>
>
>
Is there anything similar that might work?
Have you tried looping until each app is registered as a process by the
Finder/System Events, Nick?
For example, in OS 9, I'd try something like this (and maybe target System
Events instead of the Finder in OS X):
==============================
set appList to {"Internet Explorer", "Outlook Express", "Tex-Edit Plus"}
-- (or whatever)
repeat with theApp in appList
launch application theApp
tell application "Finder"
repeat until theApp is in processes's name
end repeat
end tell
end repeat
==============================
--
Kai
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.