alfred-github-stars
alfred-github-stars copied to clipboard
issues running on mac os montery
since update to mac os montery this workflow is not working bcz. macos has removed php. I've installed php but still it does not work
[11:51:43.336] Logging Started... [11:51:44.625] GitHub Stars[Script Filter] Queuing argument '' [11:51:44.692] GitHub Stars[Script Filter] Script with argv '(null)' finished [11:51:44.693] ERROR: GitHub Stars[Script Filter] Code 127: /bin/bash: php: command not found
my os: bash-3.2$ which php /usr/local/bin/php
I've also changed the script from php -f app.php ...
to /usr/local/bin/php -f app.php
but still it didnt worked
I have not yet upgraded to Montery, but I'm aware of the issue with PHP. I will probably just rewrite the Workflow in Python… though I can't say how soon I will get around to do it.
But since you installed PHP, I was under the impression, Alfred should recognize the installed PHP version (https://www.alfredapp.com/blog/releases/alfred-4-6-ready-for-macos-monterey/). Have you restarted Alfred / your Mac after installing PHP? Maybe it's a caching related issue. Maybe it doesn't work because it's actually a /bin/bash
item in Alfred and not a PHP one?
If restarting does not help, it should work if you edit the "Script filter" item in the Workflow, double click it and change php -f app.php "{query}"
in the script textarea to /usr/local/bin/php -f app.php "{query}"
, with absolut referencing there should be no issues I think.