• 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: Telling the Finder to only bring one window to the foreground
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Telling the Finder to only bring one window to the foreground


  • Subject: Re: Telling the Finder to only bring one window to the foreground
  • From: Deivy Marck Petrescu <email@hidden>
  • Date: Tue, 18 Sep 2007 16:34:13 -0400


On Sep 18, 2007, at 2:39 PM, Emmanuel wrote:

At 1:55 PM -0400 9/18/07, Deivy Marck Petrescu wrote:
On Sep 18, 2007, at 8:21 AM, Chilton Webb wrote:

Hi,

How do I tell the Finder to only bring a specific window to the foreground in front of my app?

I can make it...
Open a window (open)
Select a window (select)
Bring all windows to the foreground (activate)

... but I have been unable to make it open just one window without bringing the others to the foreground, too.

Thank you,
-Chilton Webb
_______________________________________________


As you pointed out...

tell application "Finder" to select window 2

I think the OP wants the Finder's window *above* the current app, not only above the other windows in Finder. Like clicking a Finder's window while Smile is the front app.


The only route I could think of, but I didn't quite finalize the idea, would be to minimize the new Finder's window into the Dock, then switch to the other app, then un-minimize the window in the Dock: when you do so using the UI you get the Finder's window in front of the app, and the other Finder's windows behind. I don't know how to script that.

Emmanuel
 _______________________________________________


You are right Emmanuel. I misunderstood what he wanted. And if I understand correctly now...


On Sep 18, 2007, at 2:56 PM, Luther Fuller wrote:

On Sep 18, 2007, at 12:55 PM, Deivy Marck Petrescu wrote:

As you pointed out...

tell application "Finder" to select window 2


You need to BOTH bring the Finder to the front and bring a certain window to the front, like this ...


tell application "Finder"
	activate
	select window 2
end tell

... that is also not what the OP wanted. AFAIU the OP wanted only one Finder window in the front.

If that is the case, use the script above to bring the window to the front and send all the other finder's windows away from view, then bring them back.
That would be my best solution.


Deivy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Telling the Finder to only bring one window to the foreground (From: Chilton Webb <email@hidden>)
 >Re: Telling the Finder to only bring one window to the foreground (From: Deivy Marck Petrescu <email@hidden>)
 >Re: Telling the Finder to only bring one window to the foreground (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Re: Telling the Finder to only bring one window to the foreground
  • Next by Date: Exporting shell variables to AppleScripts
  • Previous by thread: Re: Telling the Finder to only bring one window to the foreground
  • Next by thread: Re: Telling the Finder to only bring one window to the foreground
  • Index(es):
    • Date
    • Thread