# Open folder in ForkLift.app or ForkLift2.app from console # Author: Adam Strzelecki nanoant.com, modified by Bodo Tasche bitboxer.de # Updated to support ForkLift 2 and ForkLift 3 by Johan Kaving # Updated to support ForkLift from Setapp by Paul Rudkin # # Usage: # fl [] # # Opens specified directory or current working directory in ForkLift.app # # Notes: # It assumes Shift+Cmd+G launches go to folder panel and Cmd+N opens new # app window. # # https://gist.github.com/3313481 function fl { if [ ! -z "$1" ]; then DIR=$1 if [ ! -d "$DIR" ]; then DIR=$(dirname $DIR) fi if [ "$DIR" != "." ]; then PWD=`cd "$DIR";pwd` fi fi osascript 2>&1 1>/dev/null <