Re: Setting Frontmost to False
Re: Setting Frontmost to False
- Subject: Re: Setting Frontmost to False
- From: Paul Skinner <email@hidden>
- Date: Wed, 7 Aug 2002 11:16:23 -0400
On Wednesday, August 7, 2002, at 03:02 AM, Jeffrey Berman wrote:
On 8/7/02 1:30 AM, email@hidden <email@hidden> wrote:
snip
For scripts I've been working on, I do not want to specify the process
to be
frontmost, just that the current foreground process be visible but not
in
the foreground. One possibility that would be acceptable is if there
were a
way to set as frontmost whatever process is just behind a particular
process.
I don't believe that there is such a thing as 'just behind' a particular
process. there isn't any way that I know of that you can find out the
most recently active application.
In part two, you talk about processes being visible; the system
can easily make a process invisible, but that doesn't make it
something other than the front process.
It does, at least on my machine running AppleScript 1.8.3. If I toggle
the
visible of the frontmost process (set visible to false, then set it to
true), the process is no longer frontmost. My question is whether
there is
a more straightforward way to have a particular process not be the
foreground process (without specifying the process that would then be
in the
foreground).
-Jeffrey Berman
That seems pretty straightforward. This will pick some other visible
process to make frontmost.
tell application "Finder"
set frontmost of some item of (get (every process whose frontmost
is false and visible is true)) to true
end tell
--
Paul Skinner
_______________________________________________
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.