In my Alfred based workflow to list "current projects (i.e. a bunch of .hook files linked to various project folders), I want to :
- open the folder the
.hook
file points to - open the Hook GUI on the folder I’m pointing too (not on the
.hook
file)
For example, I have a sample_project.hook
file that points to the sample_project_directory
directory. When I invoke my workflow:
- a finder window pointing to
sample_project_directory
is opened - the Hook GUI on
sample_project_directory
is opened, and I can get hold of my project resources / OF tasks / Curio folder …
To do the second thing, right now, I’m using @ttscoff 's Hook CLI, and invoking (in Alfred, where $query contains the path to the sample_project_directory
:
/usr/local/bin/hook open "$(cat "$query")"
Unfortunately it seems the CLI is excrutiatingly slow on my system - 4 to 5 seconds. I’ve tested it in Terminal and I get the same result, so it’s not an issue with Alfred itself. Does anyone know:
- is there a reason for the CLI to be so slow
- is there any faster way to invoke the GUI (Hook applescript?)