Jump to content
mrchow19910319

Use Finder keyword to open a new finder window.

Recommended Posts

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

 

Share this post


Link to post
Share on other sites
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 ? 

Share this post


Link to post
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

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...