Re: Send Excel to back
Re: Send Excel to back
- Subject: Re: Send Excel to back
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 04 Sep 2001 22:47:39 -0700
On 9/4/01 10:27 PM, "Marc K. Myers" <email@hidden> wrote:
>
> From: "Rebecca Felts" <email@hidden>
>
> To: "Applescript-Users@Lists. Apple. Com"
>
> <email@hidden>
>
> Subject: Send Excel to back
>
> Date: Tue, 4 Sep 2001 15:05:08 -0500
>
>
>
> This should be easy, but I can't get it. I want a script command that will
>
> send excel to back- like a "deactivate".
>
>
If you want Excel not to be your active program, tell some other program
>
to activate:
>
>
tell application "Finder" to activate
>
>
If you want to hide Excel:
>
>
tell application "Finder" to set visible of process "Excel" to false
>
>
Is that what you're looking for?
I think that you could do this to get it right to the back, but not
invisible:
-------untested----------
tell app "Finder"
set procsList to every process whose visible is true -- forget
background apps
try
set frontApp to the first process whose frontmost is true
repeat with theProcess in procsList
if theProcess is not frontApp then
set frontmost of theProcess to true
end if
end repeat
on error -- Finder is in the front
set frontmost of (item 1 of procsList) to true -- why not?
end try
end tell
Each one will displace the original front app by one, until it's at the back
- I think.
--
Paul Berkowitz