Sententiosus Posted September 13, 2021 Posted September 13, 2021 Hello *, since the last prerelease from Alfred it is possible to set a new php path for MacOS 12. At this time the workflow editor is not accessible for the blind. Im not able to change all paths to the correct data. Can me please update the Alfred-Tweet workflow for using under MacOS 12? The URL is: https://www.packal.org/workflow/alfredtweet When there is an other workflow to send easy tweets I will test ist for me. Thanks in advanced. Regards Sebastian
Sententiosus Posted February 11, 2022 Author Posted February 11, 2022 Hello *, at this time I want to create an only send tweet workflow on the base of Alfred-Tweet. But the first problem ... I'm not able to start a php file from "running script". It makes no difference which characters I escaped or so on. The original code is: php -f setup.php -- "{query}" But PHP shows the error: [16:07:48.217] ERROR: Easy-Tweet[Run Script] PHP Parse error: syntax error, unexpected identifier "setup" in Command line code on line 1 When I run this command in the terminal it works. What can I do to fix this please? Thanks. Regards Sebastian
vitor Posted February 13, 2022 Posted February 13, 2022 When asking for help with a Workflow, please upload it somewhere as we can’t properly help you without access to it. Debugging can already be hard with access to the code, even more so when all we have is a description.
Sententiosus Posted February 13, 2022 Author Posted February 13, 2022 Hello Vitor, Where I can upload the workflow? At this moment I have only two items in the workflow. 1. Keyword. 2. Run Script. In the Run Script is only the line ... php -f setup.php -- "{query}" But PHP shows the error: [16:07:48.217] ERROR: Easy-Tweet[Run Script] PHP Parse error: syntax error, unexpected identifier "setup" in Command line code on line 1 The selected interpreter is "/usr/local/bin/php" Thanks. Regards Sebastian
vitor Posted February 13, 2022 Posted February 13, 2022 4 hours ago, Sententiosus said: Where I can upload the workflow? Try https://transfer.sh/ 4 hours ago, Sententiosus said: The selected interpreter is "/usr/local/bin/php" That’s probably your issue. You’re trying to run the PHP interpreter inside the PHP interpreter. In the Run Script, add this line at the top: export PATH="/opt/homebrew/bin:/usr/local/bin:${PATH}" and make sure the interpreter is /bin/bash. That should fix it.
Sententiosus Posted February 13, 2022 Author Posted February 13, 2022 Hello vitor, thanks for your hints. I have change the interpreter and run the export command. When I run in the terminal "php" I get the php console But when I run the workflow I get ... [17:49:18.943] ERROR: Easy-Tweet[Run Script] /bin/bash: php: command not found Do you have an other idea? Thank you for your time. Regards Sebastian
vitor Posted February 14, 2022 Posted February 14, 2022 Again, please upload your Workflow. It’s not productive to keep shooting in the dark.
Sententiosus Posted February 14, 2022 Author Posted February 14, 2022 Hello Vitor, the link ist ... https://transfer.sh/uPsdjC/Easy-Tweet.alfredworkflow Tanks and regards Sebastian
vitor Posted February 14, 2022 Posted February 14, 2022 23 hours ago, vitor said: In the Run Script, add this line at the top: export PATH="/opt/homebrew/bin:/usr/local/bin:${PATH}" You didn’t do that part. You’re not supposed to run the command, you add it to the script. Like so: export PATH="/opt/homebrew/bin:/usr/local/bin:${PATH}" php -f setup.php -- "{query}"
Sententiosus Posted February 14, 2022 Author Posted February 14, 2022 Hello Vitor, big thanks to you. I have typing the export command into the terminal ... 😮 After set the command into the run script of Alfred it works. Thanks! Regards Sebastian
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now