Re: Process whose frontmost *was* true?
Re: Process whose frontmost *was* true?
- Subject: Re: Process whose frontmost *was* true?
- From: Nigel Smith <email@hidden>
- Date: Fri, 28 May 2004 12:00:41 +0100
<snip discussions on last frontmost...>
Thinking about this, something somewhere is keeping track, in 10.3 at least,
of the "order" of applications.
System Events will return apps in their launch order but, if you command-tab
and look at the order of apps displayed, it's most-recently-used to the left
thru to least-recently-used to the right.
This is persistent -- if you kill and restart the Dock process, the ordering
remains.
Anyone know how to get at this? And wouldn't it be neat if System Events
could return a list using this order, as well as by launch order? Then you
could do something like:
tell application "System Events"
if name of first application process ordered by use is "System Events"
tell second application process ordered by use
--
---do stuff
--
end
end
end
Just a thought,
Nigel
_______________________________________________
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.