• 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: Finder window to front, AND above
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder window to front, AND above


  • Subject: Re: Finder window to front, AND above
  • From: "koenig.yvan" <email@hidden>
  • Date: Sun, 06 Jul 2014 10:35:04 +0200


Le 06/07/2014 à 06:56, okn <email@hidden> a écrit :


Hi & good day,

How to bring a Finder window to front, AND above all other app windows?

Now I’m using:

tell application "Finder"
open folder "Music-iPn" of home
set the target of front Finder window to folder "Music-iPn" of home
set bounds of front Finder window to {292, 657, 1274, 1122}
end tell

But something’s missing, any idea?

with best regards,
Omar K N
Stockholm, Sweden

What is your problem with this script ?

From my point of view, the instruction set the target of front Finder window to folder "Music-iPn" of home
is useless.
When it's saved as an application, the script brings correctly the window to front.
Of course, if you call it from the Script Editor, this one will become the frontmost one when the job is done but we can't change that.
When I tried to call the script (xx.scpt) from the Scripts menu, I saw that with or without the instruction which I thought to be useless, the window was not activated as it was supposed to do.
This is why I added a single instruction : activate.

set folderName to "Images" # "Music-iPn"

tell application "Finder"
activate # ADDED
open folder folderName of home
--set the target of front Finder window to folder folderName of home # DISABLED
set bounds of front Finder window to {292, 657, 1274, 1122}
end tell

This one really brings the window to front as the active one.

Yvan KOENIG (VALLAURIS, France) dimanche 6 juillet 2014 10:35:00




 _______________________________________________
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: 
 >Finder window to front, AND above (From: okn <email@hidden>)

  • Prev by Date: Finder window to front, AND above
  • Next by Date: Re: Finder window to front, AND above
  • Previous by thread: Finder window to front, AND above
  • Next by thread: Re: Finder window to front, AND above
  • Index(es):
    • Date
    • Thread