-
-
Save elentok/6218781 to your computer and use it in GitHub Desktop.
Open forklift from terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Open current directory in forklift | |
echo -n $PWD | pbcopy | |
(cat<<EOF | |
tell application "Forklift" | |
activate | |
tell application "System Events" | |
keystroke "G" using {command down} | |
keystroke "v" using {command down} | |
keystroke return | |
keystroke return | |
end tell | |
end tell | |
EOF | |
) | osascript |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
just in case somebody needs an updated version for Forklift 4.x
look here https://gist.github.com/therealmarv/4d6442593261e2776d75