Re: Script to Cycle Through Apps?
Re: Script to Cycle Through Apps?
- Subject: Re: Script to Cycle Through Apps?
- From: steve harley <email@hidden>
- Date: Wed, 20 Oct 2004 23:05:01 -0600
on 20 Oct 2004, at 7:38 PM, David Andrews wrote:
On Oct 20, 2004, at 6:47 PM, steve harley wrote:
set random_app to item (random number from 1 to length of the_apps)
of the_apps
This seems to work:
tell application "System Events"
set the_apps to every application process whose visible is true
set random_app to some item of the_apps
set frontmost of random_app to true
end tell
yes, but Michelle also remembered the "tell application (name of
process)" trick; her solution is better still
_______________________________________________
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