You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a copy of the server.sh file that runs the executable directly.
#!/bin/zsh# This script is a wrapper for the Firefox extension client/RPC server# to set an Alfred-like environment when it is run by Firefox.
here="${${(%):-%x}:A:h}"# getvar <name> | Read a value from info.plistgetvar() {
local v="$1"
/usr/libexec/PlistBuddy -c "Print :$v""${here}/info.plist"
}
export alfred_workflow_bundleid=$( getvar "bundleid")export alfred_workflow_version=$( getvar "version")export alfred_workflow_name=$( getvar "name")export alfred_debug=0 # <---- export alfred_workflow_cache="${HOME}/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/${alfred_workflow_bundleid}"export alfred_workflow_data="${HOME}/Library/Application Support/Alfred/Workflow Data/${alfred_workflow_bundleid}"
mkdir -p "${alfred_workflow_data}"
mkdir -p "${alfred_workflow_cache}"exec"${here}/alfred-firefox"$1$2$3$4$5
I'm getting results back in the terminal, but there are lots of log messages, like:
Is there a way to get just the JSON response back, without the extra log messages?
I tried setting the alfred_debug variable to 0, don't know if it's related
Thanks
The text was updated successfully, but these errors were encountered:
hi, I just recently came across this and found a workaround. You'd want to write the output to a file, which somehow would get only the contents : ./run.sh tab-info > tmp.json
I created a copy of the
server.sh
file that runs the executable directly.I'm getting results back in the terminal, but there are lots of log messages, like:
Is there a way to get just the JSON response back, without the extra log messages?
I tried setting the
alfred_debug
variable to 0, don't know if it's relatedThanks
The text was updated successfully, but these errors were encountered: