Setting Frontmost to False
Setting Frontmost to False
- Subject: Setting Frontmost to False
- From: email@hidden
- Date: Wed, 7 Aug 2002 02:30:51 EDT
Jeffrey,
If I understand the concepts involved correctly, you can't
force an application not to be front most simply by setting
the value to false. Instead, you must tell the process
manager (or the finder in OS 7 - 9) to set some other
process/application to the front, thus forcing the process
you want not be the front one into being somewhere other
than the front.
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.
Hope that makes sense...
Best Wishes,
=-= Marc Glasgow
Jeffrey Wrote:
>
I've been having difficulty setting the frontmost of an application process
>
to false. For example, if Terminal is the foreground process, the following
>
commands do not change the frontmost status:
>
>
tell application "System Events"
>
set frontmost of application process "Terminal" to false
>
end tell
>
>
I discovered I can change the frontmost status to false if I toggle the
>
visible of the process, as in:
>
>
tell application "System Events"
>
set visible of application process "Terminal" to false
>
set visible of application process "Terminal" to true
>
end tell
>
>
Anyone know why the first example does not work and if there is a more
>
direct way to change the frontmost status of the foreground process?
>
>
-Jeffrey Berman
_______________________________________________
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.