Jump to content

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

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.

Link to comment

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
×
×
  • Create New...