mrchow19910319 Posted September 27, 2018 Share Posted September 27, 2018 Instead of just switching app to finder, maybe we should just let it open a new finder window up front. What do you guys think?? Or is there an apple script I can write to achieve this? Link to comment Share on other sites More sharing options...
vitor Posted September 27, 2018 Share Posted September 27, 2018 3 hours ago, mrchow19910319 said: Or is there an apple script I can write to achieve this? tell application "Finder" make new Finder window set the target of the front Finder window to (POSIX file "/tmp") -- or -- set the target of the front Finder window to home end tell mrchow19910319 1 Link to comment Share on other sites More sharing options...
mrchow19910319 Posted September 27, 2018 Author Share Posted September 27, 2018 tell application "Finder" make new Finder window set the target of the front Finder window to (POSIX file "/Users/zhouxiang/Downloads") -- or -- set the target of the front Finder window to home end tell I modded it a bit to show download folder every time. It works, but the finder window does not appear on top of every other window, is there a way to do that ? Link to comment Share on other sites More sharing options...
vitor Posted September 27, 2018 Share Posted September 27, 2018 You don’t need the -- or -- line. That was an example. 19 minutes ago, mrchow19910319 said: the finder window does not appear on top of every other window, is there a way to do that ? Unsure if you can bring only one window to the top, but you can bring them all with activate: tell application "Finder" make new Finder window set the target of the front Finder window to (POSIX file "/Users/vitor/Downloads") activate end tell Link to comment Share on other sites More sharing options...
mrchow19910319 Posted September 27, 2018 Author Share Posted September 27, 2018 @vitor okay now the 1st time you execute the finder window will not appear up front, once you bring it upfront manually, then after that everytime it will appears upfront. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now