Jump to content

an_tony

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by an_tony

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

×
×
  • Create New...