Jump to content

Need help to updating Alfred-Tweet Workflow


Recommended Posts

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 

Link to comment
  • 4 months later...

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 

Link to comment

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.

Link to comment

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 

 

Link to comment
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.

Link to comment

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 

Link to comment
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}"

 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...