- Why?
- Visibility toggle for Path Finder and Finder (Alfred)
- Visibility toggle for Path Finder and Finder (other 3rd party apps)
- Auto hide on deactivate?
- Actually... The (apple)script should work for any app
- General info
I used to use Total Finder before some performance issues in Mountain Lion (I think). It attaches itself to Finder and adds new features to it, so it's not a standalone application. I used it mainly because Finder didn't yet have tabs, but it had other nice things as well.
It had this feature that I liked a lot called Visor, which basically makes the finder window act like an overlay in the sense that you can toggle Finder visibility with a shortcut and it would also hide if another window gains focus. This script brings at least part of that functionality to Finder and Path Finder.
⬇️ Visibility toggle for Path Finder and Finder.alfredworkflow
This Alfred workflow contains one script for toggling Path Finder
and one script for toggling Finder
. If you use Alfred, this is the only file you need.
If you use other apps that allow you to trigger scripts via shortcut, you can probably use the eincluded applescript files (.script
).
⬇️ Visibility toggle Finder.scpt ⬇️ Visibility toggle Path Finder.scpt
If you also want the application window to auto hide on deactivate, you can use the included Keyboard Maestro macros Auto hide + pin - Path Finder and Finder.kmmacros. You'll probably have to download this file with the whole repo to avoid issues.
Here's a script (applescript) that toggles the visiblity of Chrome. The two .script
files in the repo are exactly like this one, except of course they open Finder or Path Finder.
set myapp to "Google Chrome"
set appOpen to false
tell application "System Events"
if not (exists process myapp) then
set appOpen to true
else if frontmost of process myapp then
set visible of process myapp to false
else
set frontmost of process myapp to true
end if
end tell
if appOpen then
tell application myapp to activate
end if
- The toggle scripts open the application if it's not already open.
- The application window won't auto hide on deactivate without using the Keyboard Maestro macros. It will of course hide under other windows and truly hide if you use the toggle shortcut.
- I use
Cmd + Shift + >
as my hide toggle shortcut (In my Finnish/Swedish keyboard the>
is the next button to the right from the left shift) - I use
Cmd + Shift + Ctrl + >
to disable/enable auto hide. Honestly I use autohide pretty rarely these days.