Jump to content

Workflow: Units - convert currency length temperature weight and more


Recommended Posts

  • 1 month later...
  • 1 year later...
  • 2 months later...
  • 2 months later...
On 8/13/2021 at 9:55 AM, deanishe said:

 

In bash:

curl -sfL -F v=3.6 -F "q=$1" http://units.dnsu.ch/units/server/alfred
if [ $? -ne 0 ]; then
	echo '{"items": [{"title": "Units is unavailable", "subtitle": "sorry..", "icon": {"path": "Icons/error.png"}}]}'
fi

 

 

First of: I have no background in programming or scripting, so lots of the posts that I have been reading concerning Alfred+Monterey (and php) are hard to understand.

Many of the workflows I use stopped working since upgrading to Apple Silicon and Monterey, this units workflow being one of them.

 

Seeing that there is a solution to make this workflow run again makes me jolly but I don't understand where or how to save this script in order for the workflow to run.

 

Any help, gladly also via PM, would be very much appreciated!

 

Best,

Tony

Link to comment
6 hours ago, an_tony said:

Seeing that there is a solution to make this workflow run again makes me jolly but I don't understand where or how to save this script in order for the workflow to run.

 

It's a bash replacement for the main Script Filter in the workflow.

 

I wouldn't bother, though, tbh: You'll probably need to install PHP to fix other workflows, anyway. https://brew.sh/

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...