Re: Focus window
Re: Focus window
- Subject: Re: Focus window
- From: Andrew Oliver <email@hidden>
- Date: Wed, 17 Nov 2004 17:16:02 -0800
On 11/17/04 1:27 PM, "michael breidenbruecker" <email@hidden> wrote:
> Hi
>
> I need to send keyboard commands to a window in firefox which might not be
> the front window.. Therefore i want to make it the front window first.
>
> Now the problem is I can't find an applescript command to make a window in
> firefox the front window.
>
> Things like "set window 2 to front window" don't work...
>
> Any ideas?
Use window indexing:
tell application "Firefox"
set index of window 2 to 1
end tell
Where the index value is a indication of how high the window should be in
the stack, with 1 being frontmost.
Andrew
:)
_______________________________________________
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
References: | |
| >Focus window (From: michael breidenbruecker <email@hidden>) |