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
|