• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Focus window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: alias from Finder file object
  • Next by Date: Re: how to make/move a new window underneath the other windows
  • Previous by thread: Focus window
  • Next by thread: alias from Finder file object
  • Index(es):
    • Date
    • Thread