Open hugh1li opened 7 years ago
Okay, easy-peasy.
Actually I did that long before. This workflow does not work only after upgrading to high Sierra.
Security & Privacy is not the problem. I have the same issue here, and when debugging the workflow, I get:
[2017-10-17 22:22:44][ERROR: input.scriptfilter] Code 1: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- alfred (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from ./main.rb:8:in `<main>'
So the problem is High Sierra has upgraded ruby to 2.3 and the packaged workflow only has bundles for 1.8 and 2.0.0. Not being familiar with the ruby ecosystem, I was completely unable to figure out how to fix that.
Symlinking bundle/ruby/2.3.0 to 2.0.0 within the wokrflow appears to fix the problem, but there ought to be some more sensible way, involving bundle
, rake
or whatever.
@ddaanet thanks for that tip! I just upgrade (finally) and lost top
. 😱
The fix:
bundler
installed - http://bundler.io/bundle install --standalone
which installs the 2.3.0
gems in bundle/ruby/2.3.0
.top
has returned.
I guess you need to find a way to allow the script to control your mac. I did not figure it out how to do it yet (in 2 minutes).