Echidna is a Mac app for generating “shim applications” that allow opening files with terminal programs by double clicking on the files’ icons. For example, you could generate a shim app to open double-clicked source files in (n)vim
or emacs
. Files can also be opened with the selected terminal application by dragging to the shim’s icon in the Finder or Dock or selecting the shim app from the Open With
menu after right-clicking on the file icon. Echidna’s name, like its functionality, is inspired by Platypus (Github), a wonderful Mac app for wrapping scripts in GUIs.
After launching Echidna, first fill out the fields:
Open With
menu for. Other files will still be openable with Open With
-> Other...
(perhaps enabling All Applications
). NB: UTI is Uniform Type Identifier.
public.text
, public.data
)public.content
, public.data
)*
) is no extension.Generic
, and enter the terminal’s name. An attempt will be make to control the terminal by sending keystrokes (best effort). Permission must first be given for your shim app to control your computer in System Preferences
-> Privacy and Security
-> Accessbility
.A custom icon can also be chosen with “Select Icon…”.
Then click Save As…
, provide a file name and directory,
and click Save
. You can then set your shim app as the
Open With
handler, or launch it to provide a draggable
target in the Dock (no windows will appear after being launched, and
launching the shim app ahead of time isn’t necessary).