Skip to main content
100%

Open current directory in forklift

✓ Published0🌍 Public
MMcNull
Last edited Mar 26, 2014
Created on Mar 26, 2014

This example shows a shell script that opens the current directory in ForkLift, a macOS file manager, either in a new tab or window. It first resolves the target path via `pwd`, optionally accepting a custom path argument, then forwards it to an AppleScript block. The AppleScript uses `System Events` to inspect ForkLift’s File menu for the enabled state of the new-tab command, sends keyboard shortcuts for tab/window creation and “Go to Folder”, and types the path using `keystroke`. The script is adapted from a Gist by McNull, adding an optional path argument and removing clipboard reliance.

AI-generated description

Similar vizzes