Jump to content
jameskachan

HOW TO SCRIPT - HotKey open's Specific folder in current Finder.app window

Recommended Posts

I currently have a basic workflow connected to a Hotkey that opens a folder.

 

A hotkey setting, connects to "Launch Apps  / Files"

 

This works as expected, however it opens folders in new Finder windows.

I would like it to open the folder in the current finder window.

 

Any one know how this could be done?

 

Thanks

—James

 

 

hSxYh35.png

 

This is what I have set up now,  it works but it opens in NEW finder windows, I want it to open in the current finder window (if there is one open and active)

Edited by jameskachan

Share this post


Link to post

I currently have a basic workflow connected to a Hotkey that opens a folder.

 

A hotkey setting, connects to "Launch Apps  / Files"

 

This works as expected, however it opens folders in new Finder windows.

I would like it to open the folder in the current finder window.

 

Any one know how this could be done?

 

Thanks

—James

 

 

hSxYh35.png

 

This is what I have set up now,  it works but it opens in NEW finder windows, I want it to open in the current finder window (if there is one open and active)

 

Doing this isn't currently supported by default but a little AppleScript could probably make it possible. You could check and see if Finder has any windows open, if so, open the path there instead. This would be an alternate way though, something ran as a workflow (file action).

tell application "Finder"
	set temp to window 1
	set blah to POSIX file "/Users/ferg/Documents"
	set the target of temp to blah as alias
end tell

 

This is kind of a start of what I was tinkering with to test this.

Share this post


Link to post

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...