How can I time the startup of an application?

Hi,

How can I count the seconds of een application to startup?!!
From click on the icon thru the application is fully startup.

Andre

If you mean when it’s ready to process events from your script, this is very hard to do unless the app in question supports some kind of state object that you can query.

For example, iTunes has a ‘player state’ object that tells you what it’s doing. You can tell iTunes to launch and then repeatedly query the player state until it’s ‘idle’.

Without knowing the application you’re trying to measure it’s impossible to advise further.