Jump to content

Use Finder keyword to open a new finder window.


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...