Script to Cycle Through Apps?
Script to Cycle Through Apps?
- Subject: Script to Cycle Through Apps?
- From: Marconi <email@hidden>
- Date: Wed, 20 Oct 2004 10:57:04 -0700
I'm having a problem with one application unexpectedly (and silently
-- no alert) quitting when it is activated. I think I have nailed
down the app with which there is a bad interaction which causes the
other app to quit.
To speed up testing, I'd like to script a stay-open script to simply
make note of all running apps at the time it's started, then cycle
through them, bringing an app selected randomly to the front --
"activate". It would wait a few seconds to allow all of the randomly
selected app's windows to update as necessary, then randomly choose
another running app from the list and activate it. Repeat until any
running app quits.
If any of the original apps quit, I want the script to present an
alert showing which app quit and also the previous front-most app, in
case that turns out to be significant.
Now, activating any given app is easy. What I don't know is how to
get a list of the running apps and randomly choose one to activate.
I figure that by running a script I can get the equivalent of hours
or even days worth of normal app switching done quite quickly while
I'm away from my Mac (OS X 10.3.5). I hope to try this with different
combinations of apps to see if the correlation I seem to have noted
is, in fact, accurate.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden