deanishe / alfred-firefox Goto Github PK
View Code? Open in Web Editor NEWSearch and control Firefox from Alfred
License: Other
Search and control Firefox from Alfred
License: Other
There is a neat little FF feature to allows the user to open a bookmark directly in a given container.
Using ext+container:name=THE_CONTAINER_NAME&url=https://example.com
but it breaks when using this workflow.
[18:13:07.315] Firefox Assistant[Script Filter] Queuing argument 't'
[18:13:07.341] Firefox Assistant[Script Filter] Script with argv 't' finished
[18:13:07.345] STDERR: Firefox Assistant[Script Filter] 18:13:07 workflow_paths.go:143: [warning] info.plist not found. Guessed: /Users/pyrho/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A
🍺
18:13:07 workflow.go:327: ----- Firefox Assistant/0.2.1 (AwGo/0.20.2) ------
18:13:07 actions.go:83: loaded URL action "Open in Chrome" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Chrome.sh"
18:13:07 actions.go:83: loaded URL action "Open in Default Application" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Default Application.sh"
18:13:07 actions.go:83: loaded URL action "Open in Firefox" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Firefox.sh"
18:13:07 actions.go:83: loaded URL action "Open in Safari" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Safari.sh"
18:13:07 update.go:210: 6m0.683575s since last check for update
18:13:07 feedback.go:468: Sent 1 result(s) to Alfred
18:13:07 workflow.go:404: ------------------- 6.65923ms --------------------
[18:13:07.346] Firefox Assistant[Script Filter] {
"variables": {
"AW_SESSION_ID": "IOVZPI25Z9TVGHASZJG0334I"
},
"items": [
{
"title": "Query Too Short",
"subtitle": "Please enter at least 3 characters",
"valid": false,
"icon": {
"path": "icons/warning.png"
}
}
]
}
[18:13:07.372] Firefox Assistant[Script Filter] Queuing argument 'tr'
[18:13:07.457] Firefox Assistant[Script Filter] Script with argv 'tr' finished
[18:13:07.461] STDERR: Firefox Assistant[Script Filter] 18:13:07 workflow_paths.go:143: [warning] info.plist not found. Guessed: /Users/pyrho/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A
🍺
18:13:07 workflow.go:327: ----- Firefox Assistant/0.2.1 (AwGo/0.20.2) ------
18:13:07 actions.go:83: loaded URL action "Open in Default Application" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Default Application.sh"
18:13:07 actions.go:83: loaded URL action "Open in Firefox" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Firefox.sh"
18:13:07 actions.go:83: loaded URL action "Open in Safari" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Safari.sh"
18:13:07 actions.go:83: loaded URL action "Open in Chrome" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Chrome.sh"
18:13:07 update.go:210: 6m0.736693s since last check for update
18:13:07 feedback.go:468: Sent 1 result(s) to Alfred
18:13:07 workflow.go:404: ------------------- 5.952642ms -------------------
[18:13:07.463] Firefox Assistant[Script Filter] {
"variables": {
"AW_SESSION_ID": "IOVZPI25Z9TVGHASZJG0334I"
},
"items": [
{
"title": "Query Too Short",
"subtitle": "Please enter at least 3 characters",
"valid": false,
"icon": {
"path": "icons/warning.png"
}
}
]
}
[18:13:07.473] Firefox Assistant[Script Filter] Queuing argument 'tre'
[18:13:07.565] Firefox Assistant[Script Filter] Script with argv 'tre' finished
[18:13:07.573] STDERR: Firefox Assistant[Script Filter] 18:13:07 workflow_paths.go:143: [warning] info.plist not found. Guessed: /Users/pyrho/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A
🍺
18:13:07 workflow.go:327: ----- Firefox Assistant/0.2.1 (AwGo/0.20.2) ------
18:13:07 actions.go:83: loaded URL action "Open in Chrome" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Chrome.sh"
18:13:07 actions.go:83: loaded URL action "Open in Default Application" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Default Application.sh"
18:13:07 actions.go:83: loaded URL action "Open in Firefox" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Firefox.sh"
18:13:07 actions.go:83: loaded URL action "Open in Safari" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Safari.sh"
18:13:07 update.go:210: 6m0.837415s since last check for update
18:13:07 client.go:248: searching bookmarks for "tre" ...
18:13:07 rpc_client.go:28: RPC client connected to "Firefox Developer Edition"
18:13:07 actions_custom.go:86: invalid modifier for "tab_godoc"
18:13:07 feedback.go:468: Sent 1 result(s) to Alfred
18:13:07 workflow.go:404: ------------------ 11.963824ms -------------------
[18:13:07.575] Firefox Assistant[Script Filter] {
"variables": {
"AW_SESSION_ID": "IOVZPI25Z9TVGHASZJG0334I"
},
"items": [
{
"title": "Trello",
"subtitle": "ext+container:name=Work\u0026url=https://trello.com/",
"arg": "ext+container:name=Work\u0026url=https://trello.com/",
"uid": "S1DQe4VEe6j_",
"valid": true,
"icon": {
"path": "icons/bookmark.png"
},
"variables": {
"ACTION": "Open in Firefox",
"CMD": "url",
"TITLE": "Trello",
"URL": "ext+container:name=Work\u0026url=https://trello.com/"
},
"mods": {
"alt": {
"subtitle": "Open in Safari",
"icon": {
"path": "/Users/pyrho/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Safari.icns"
},
"variables": {
"ACTION": "Open in Safari",
"CMD": "url",
"TITLE": "Trello",
"URL": "ext+container:name=Work\u0026url=https://trello.com/"
}
},
"cmd": {
"arg": "",
"subtitle": "Other Actions…",
"icon": {
"path": "icons/more.png"
},
"variables": {
"ACTION": "Open in Firefox",
"CMD": "actions",
"TITLE": "Trello",
"URL": "ext+container:name=Work\u0026url=https://trello.com/"
}
}
}
}
]
}
[18:13:07.646] Firefox Assistant[Script Filter] Queuing argument 'trel'
[18:13:07.739] Firefox Assistant[Script Filter] Script with argv 'trel' finished
[18:13:07.751] STDERR: Firefox Assistant[Script Filter] 18:13:07 workflow_paths.go:143: [warning] info.plist not found. Guessed: /Users/pyrho/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A
🍺
18:13:07 workflow.go:327: ----- Firefox Assistant/0.2.1 (AwGo/0.20.2) ------
18:13:07 actions.go:83: loaded URL action "Open in Chrome" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Chrome.sh"
18:13:07 actions.go:83: loaded URL action "Open in Default Application" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Default Application.sh"
18:13:07 actions.go:83: loaded URL action "Open in Firefox" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Firefox.sh"
18:13:07 actions.go:83: loaded URL action "Open in Safari" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Safari.sh"
18:13:07 update.go:210: 6m1.01163s since last check for update
18:13:07 client.go:248: searching bookmarks for "trel" ...
18:13:07 rpc_client.go:28: RPC client connected to "Firefox Developer Edition"
18:13:07 actions_custom.go:86: invalid modifier for "tab_godoc"
18:13:07 feedback.go:468: Sent 1 result(s) to Alfred
18:13:07 workflow.go:404: ------------------ 11.721674ms -------------------
[18:13:07.753] Firefox Assistant[Script Filter] {
"variables": {
"AW_SESSION_ID": "IOVZPI25Z9TVGHASZJG0334I"
},
"items": [
{
"title": "Trello",
"subtitle": "ext+container:name=Work\u0026url=https://trello.com/",
"arg": "ext+container:name=Work\u0026url=https://trello.com/",
"uid": "S1DQe4VEe6j_",
"valid": true,
"icon": {
"path": "icons/bookmark.png"
},
"variables": {
"ACTION": "Open in Firefox",
"CMD": "url",
"TITLE": "Trello",
"URL": "ext+container:name=Work\u0026url=https://trello.com/"
},
"mods": {
"alt": {
"subtitle": "Open in Safari",
"icon": {
"path": "/Users/pyrho/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Safari.icns"
},
"variables": {
"ACTION": "Open in Safari",
"CMD": "url",
"TITLE": "Trello",
"URL": "ext+container:name=Work\u0026url=https://trello.com/"
}
},
"cmd": {
"arg": "",
"subtitle": "Other Actions…",
"icon": {
"path": "icons/more.png"
},
"variables": {
"ACTION": "Open in Firefox",
"CMD": "actions",
"TITLE": "Trello",
"URL": "ext+container:name=Work\u0026url=https://trello.com/"
}
}
}
}
]
}
[18:13:07.788] Firefox Assistant[Script Filter] Queuing argument 'trell'
[18:13:07.881] Firefox Assistant[Script Filter] Script with argv 'trell' finished
[18:13:07.886] STDERR: Firefox Assistant[Script Filter] 18:13:07 workflow_paths.go:143: [warning] info.plist not found. Guessed: /Users/pyrho/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A
🍺
18:13:07 workflow.go:327: ----- Firefox Assistant/0.2.1 (AwGo/0.20.2) ------
18:13:07 actions.go:83: loaded URL action "Open in Chrome" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Chrome.sh"
18:13:07 actions.go:83: loaded URL action "Open in Default Application" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Default Application.sh"
18:13:07 actions.go:83: loaded URL action "Open in Firefox" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Firefox.sh"
18:13:07 actions.go:83: loaded URL action "Open in Safari" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Safari.sh"
18:13:07 update.go:210: 6m1.153862s since last check for update
18:13:07 client.go:248: searching bookmarks for "trell" ...
18:13:07 rpc_client.go:28: RPC client connected to "Firefox Developer Edition"
18:13:07 actions_custom.go:86: invalid modifier for "tab_godoc"
18:13:07 feedback.go:468: Sent 1 result(s) to Alfred
18:13:07 workflow.go:404: ------------------- 11.66769ms -------------------
[18:13:07.889] Firefox Assistant[Script Filter] {
"variables": {
"AW_SESSION_ID": "IOVZPI25Z9TVGHASZJG0334I"
},
"items": [
{
"title": "Trello",
"subtitle": "ext+container:name=Work\u0026url=https://trello.com/",
"arg": "ext+container:name=Work\u0026url=https://trello.com/",
"uid": "S1DQe4VEe6j_",
"valid": true,
"icon": {
"path": "icons/bookmark.png"
},
"variables": {
"ACTION": "Open in Firefox",
"CMD": "url",
"TITLE": "Trello",
"URL": "ext+container:name=Work\u0026url=https://trello.com/"
},
"mods": {
"alt": {
"subtitle": "Open in Safari",
"icon": {
"path": "/Users/pyrho/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Safari.icns"
},
"variables": {
"ACTION": "Open in Safari",
"CMD": "url",
"TITLE": "Trello",
"URL": "ext+container:name=Work\u0026url=https://trello.com/"
}
},
"cmd": {
"arg": "",
"subtitle": "Other Actions…",
"icon": {
"path": "icons/more.png"
},
"variables": {
"ACTION": "Open in Firefox",
"CMD": "actions",
"TITLE": "Trello",
"URL": "ext+container:name=Work\u0026url=https://trello.com/"
}
}
}
}
]
}
[18:13:09.351] Firefox Assistant[Script Filter] Processing complete
[18:13:09.365] Firefox Assistant[Script Filter] Passing output 'ext+container:name=Work&url=https://trello.com/' to Debug
[18:13:09.367] Firefox Assistant[Debug] .
/------------------------\
query=ext+container:name=Work&url=https://trello.com/
variables={
ACTION = "Open in Firefox"
AW_SESSION_ID = "IOVZPI25Z9TVGHASZJG0334I"
CMD = "url"
TAB_CTRL = ""
TAB_GODOC = ""
TITLE = "Trello"
URL = "ext+container:name=Work&url=https://trello.com/
URL_DEFAULT = "Open in Firefox"
URL_OPT = "Open in Safari"
}
\------------------------/
[18:13:09.368] Firefox Assistant[Debug] Processing complete
[18:13:09.369] Firefox Assistant[Debug] Passing output 'ext+container:name=Work&url=https://trello.com/' to Conditional
[18:13:09.370] Firefox Assistant[Conditional] Processing complete
[18:13:09.371] Firefox Assistant[Conditional] Passing output 'ext+container:name=Work&url=https://trello.com/' to Hide Alfred
[18:13:09.387] Firefox Assistant[Hide Alfred] Processing complete
[18:13:09.388] Firefox Assistant[Hide Alfred] Passing output 'ext+container:name=Work&url=https://trello.com/' to Debug
[18:13:09.389] Firefox Assistant[Debug] .
/------------------------\
query=ext+container:name=Work&url=https://trello.com/
variables={
ACTION = "Open in Firefox"
AW_SESSION_ID = "IOVZPI25Z9TVGHASZJG0334I"
CMD = "url"
TAB_CTRL = ""
TAB_GODOC = ""
TITLE = "Trello"
URL = "ext+container:name=Work&url=https://trello.com/
URL_DEFAULT = "Open in Firefox"
URL_OPT = "Open in Safari"
}
\------------------------/
[18:13:09.391] Firefox Assistant[Debug] Processing complete
[18:13:09.392] Firefox Assistant[Debug] Passing output 'ext+container:name=Work&url=https://trello.com/' to Run Script
[18:13:09.470] ERROR: Firefox Assistant[Run Script] 18:13:09 workflow_paths.go:143: [warning] info.plist not found. Guessed: /Users/pyrho/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A
🍺
18:13:09 workflow.go:327: ----- Firefox Assistant/0.2.1 (AwGo/0.20.2) ------
18:13:09 actions.go:83: loaded URL action "Open in Default Application" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Default Application.sh"
18:13:09 actions.go:83: loaded URL action "Open in Firefox" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Firefox.sh"
18:13:09 actions.go:83: loaded URL action "Open in Safari" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Safari.sh"
18:13:09 actions.go:83: loaded URL action "Open in Chrome" from "~/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Chrome.sh"
18:13:09 client.go:402: running action "Open in Firefox" on URL "ext+container:name=Work&url=https://trello.com/" ...
18:13:09 rpc_client.go:28: RPC client connected to "Firefox Developer Edition"
18:13:09 scripts.go:164: ------------- [/Users/pyrho/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/scripts/Open in Firefox.sh ext+container:name=Work&url=https://trello.com/] ---------------
18:13:09 scripts.go:165: The file /Users/pyrho/SynologyDrive/alfred_settings/Alfred.alfredpreferences/workflows/user.workflow.CCCFFD09-B571-499E-B8C4-B608C1FC116A/ext+container:name=Work&url=https:/trello.com/ does not exist.
18:13:09 scripts.go:166: ----------------------------------------------
18:13:09 workflow.go:342: ------------------ FATAL ERROR -------------------
18:13:09 workflow.go:343: exit status 1 : goroutine 1 [running]:
runtime/debug.Stack(0xc00014fd00, 0x1, 0x1)
/usr/local/opt/go/libexec/src/runtime/debug/stack.go:24 +0x9d
github.com/deanishe/awgo.(*Workflow).Run.func2(0xc00013c000)
/Users/daj/pkg/mod/github.com/deanishe/[email protected]/workflow.go:343 +0xe7
panic(0x14953e0, 0xc0000b4b80)
/usr/local/opt/go/libexec/src/runtime/panic.go:679 +0x1b2
main.run()
/Users/daj/Code/Alfred/alfred-firefox-assistant/main.go:145 +0x1c8
github.com/deanishe/awgo.(*Workflow).Run(0xc00013c000, 0x14d4a18)
/Users/daj/pkg/mod/github.com/deanishe/[email protected]/workflow.go:357 +0x2af
main.main()
/Users/daj/Code/Alfred/alfred-firefox-assistant/main.go:149 +0x39
18:13:09 workflow.go:344: ---------------- END STACK TRACE -----------------
18:13:09 workflow.go:375: [ERROR] exit status 1
18:13:09 workflow.go:378: Get help at https://github.com/deanishe/alfred-firefox/issues
18:13:09 workflow.go:401: ------------------ 23.448532ms -------------------
Let me know if you need more information ! Thanks.
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.plist
getvar() {
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:
> ./run.sh tab-info
01:06:29 ----- Firefox Assistant/0.2.2 (AwGo/0.27.1) ------
01:06:29 loaded URL action "Open in Default Application" from .....
01:16:34 RPC client connected to "Firefox"
{"alfredworkflow":{"variables":{"FF_INDEX":"1","FF_TAB":"2","FF_TITLE":"New Issue ......
01:19:10 ------------------- 4.672601ms -------------------
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
Hello,
I can't run the Firefox extension in Firefox-esr, because extension require Firefox 70+ and esr is 68. Could you adapt extension to Firefox-esr?
Thanks.
the Filter Tabs script does not work fully. Everything works except the browser doesn't go to the page selected. In other words, the tab names come up, you can select, but the page does not change and go there. This works on one of my computers (macbook pro 2013) but not on a mac mini m1. The scripts for bookmarks and history work and the results can be chosen and the page goes there but not with open tabs.
I reinstalled the extension in Alfred.
The plugin was pointing to an incorrect directory (looks like a cache issue)
So I fixed it by renaming the following back:
user.workflow.40155274-8A51-4D8D-A834-D9683337394F
Was previously user.workflow.<Invalid path>
I find it annoying that before we could simply type "asana" but now we have to type "bm asana". Would be nice to change this :-)
Add mutual compatibility check to workflow and extension.
ping
command with version
commandKeep "legacy" feature in extension longer to ensure maximum compatibility.
Alfred 4.2.1; Firefox Assistant 0.2.1; Firefox 83.0; Alfred Integration 1.1.2; Catalina 10.15.7
I have two Macs with exactly the above setup;
On one, I installed the Alfred Firefox Integration without trouble, on the second I now cannot get it to work:
[03:28:29.671] Firefox Assistant[Script Filter] Script with argv 'ase' finished
[03:28:29.672] ERROR: Firefox Assistant[Script Filter] Code 1: 03:28:29 workflow_paths.go:143: [warning] info.plist not found. Guessed: /Users/fnl/Documents/Dropbox/Configs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.2BBC9FED-93A4-49F1-B4B8-2698E78F073E
🍺
03:28:29 workflow.go:327: ----- Firefox Assistant/0.2.1 (AwGo/0.20.2) ------
03:28:29 actions.go:83: loaded URL action "Open in Chrome" from "~/Documents/Dropbox/Configs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.2BBC9FED-93A4-49F1-B4B8-2698E78F073E/scripts/Open in Chrome.sh"
03:28:29 actions.go:83: loaded URL action "Open in Default Application" from "~/Documents/Dropbox/Configs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.2BBC9FED-93A4-49F1-B4B8-2698E78F073E/scripts/Open in Default Application.sh"
03:28:29 actions.go:83: loaded URL action "Open in Firefox" from "~/Documents/Dropbox/Configs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.2BBC9FED-93A4-49F1-B4B8-2698E78F073E/scripts/Open in Firefox.sh"
03:28:29 actions.go:83: loaded URL action "Open in Safari" from "~/Documents/Dropbox/Configs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.2BBC9FED-93A4-49F1-B4B8-2698E78F073E/scripts/Open in Safari.sh"
03:28:29 update.go:210: 9m16.681611s since last check for update
03:28:29 client.go:248: searching bookmarks for "ase" ...
03:28:29 rpc_client.go:36: [ERROR] dial unix /tmp/alfred-firefox.501.sock: connect: no such file or directory
03:28:29 workflow.go:342: ------------------ FATAL ERROR -------------------
03:28:29 workflow.go:343: Cannot Connect to Extension : goroutine 1 [running]:
runtime/debug.Stack(0xc000147990, 0x1, 0x1)
/usr/local/opt/go/libexec/src/runtime/debug/stack.go:24 +0x9d
github.com/deanishe/awgo.(*Workflow).Run.func2(0xc000138000)
/Users/daj/pkg/mod/github.com/deanishe/[email protected]/workflow.go:343 +0xe7
panic(0x140f940, 0x1544170)
/usr/local/opt/go/libexec/src/runtime/panic.go:679 +0x1b2
main.mustClient(0x14c15b5)
/Users/daj/Code/Alfred/alfred-firefox-assistant/rpc_client.go:37 +0xb4
main.runBookmarks(0xc0000c2030, 0x0, 0x0, 0x0, 0x0)
/Users/daj/Code/Alfred/alfred-firefox-assistant/client.go:249 +0xc1
github.com/peterbourgon/ff/ffcli.(*Command).Run(0x1831c40, 0xc0000c2030, 0x0, 0x0, 0x183a601, 0x2)
/Users/daj/pkg/mod/github.com/peterbourgon/[email protected]/ffcli/command.go:96 +0x248
github.com/peterbourgon/ff/ffcli.(*Command).Run(0x1832500, 0xc0000c2010, 0x3, 0x3, 0x14b6453, 0x9)
/Users/daj/pkg/mod/github.com/peterbourgon/[email protected]/ffcli/command.go:90 +0x1f1
main.run()
/Users/daj/Code/Alfred/alfred-firefox-assistant/main.go:144 +0x191
github.com/deanishe/awgo.(*Workflow).Run(0xc000138000, 0x14d4a18)
/Users/daj/pkg/mod/github.com/deanishe/[email protected]/workflow.go:357 +0x2af
main.main()
/Users/daj/Code/Alfred/alfred-firefox-assistant/main.go:149 +0x39
03:28:29 workflow.go:344: ---------------- END STACK TRACE -----------------
03:28:29 feedback.go:468: Sent 1 result(s) to Alfred
03:28:29 workflow.go:375: [ERROR] Cannot Connect to Extension
03:28:29 workflow.go:378: Get help at https://github.com/deanishe/alfred-firefox/issues
03:28:29 workflow.go:401: ------------------- 5.937233ms -------------------
[03:28:29.681] Firefox Assistant[Script Filter] {
"variables": {
"AW_SESSION_ID": "PQJB0DNB94Q85SOZIQUAT3J5"
},
"items": [
{
"title": "Cannot Connect to Extension",
"valid": false,
"icon": {
"path": "icons/error.png"
}
}
]
}
If I run the server.sh
script from a terminal, it starts and even gets the searches from Alfred, but times out as it does not connect to Firefox.
And the Firefox extension always insists it is "disconnected".
Also, ffass workflow:register
finishes successfully.
Removing and reinstalling the workflow as well as restarting the machine also did not help.
Any ideas what I can try next?
Hello,
I was a big user of the tool on Alfred 5.0.
Following the update to 5.5 I have the impression that the workflow no longer works?
It no longer connects to the extension.
( I did attempt to reinstall it )
Is it possible for you to update your superb tool?
Thank you
I use the alfred-firefox on an Intel MacBook Pro without any issues. However, on a new M1 Mac mini, the tab
command functions incredibly slowly, and performs the action several minutes after submitting it. The other actions (bookmarks, history, etc.) behave instantly as expected - only switching to open tabs takes a very long time.
I already attempted to reinstall alfred-firefox and the Firefox Integration add-on, and also in a new Firefox profile. It's reproducible on both release and beta versions of Firefox (versions 85 and 86). macOS 11.2.1
Happy to share any logs or other information to help diagnose.
Kind of how it works in an IDE.
Is that possible? Would have been nice :)
I label my most used bookmarks to quick launch them from the firefox address bar, ex: * mylabel
Is it possible for this integration to search by those labels? Having those accessible via quick launch with Alfred would be invaluable.
Tried the extension on LibreWolf with no luck.
Not sure what to change myself, but would it be possible to guide how to add support?
LibreWolf is a soft fork of Firefox for privacy.
FF 104.0.2
Prior was 103.0.2 and it worked fine. Might need to downgrade at this point, this extension is the sauce. Period.
Simply does not connect to extension, I've rechecked the preferences location on my computer (not on a cloud), as well as reinstalled workflow/Alfred.
Issue ONLY came up after the FF update.
Prior issue someone had was similar error message that I received. He resolved it by checking preferences was local and not cloud. Unfortunately that's not what's causing the issue for me.
Workflow is up to date and registered with FF.
Just an idea.
When I used Alfred with Safari bookmarks I quite enjoyed being able to search the folder name and then get a list all the bookmarks inside (along with any bookmark from anywhere which matched the query). Each returned entry would have small text of the bookmark folder to make it clear when browsing through results.
Many of us probably arrange bookmarks by topics so it's a useful feature when you're unsure of the exact thing you're looking for (i.e maybe i'll have a bunch of websites in a "news" folder and it would be nice to scroll through them to remind me of what's there).
It appears that URL is not considered when filtering tabs. I'm using a productivity app (ClickUp) that does not have the app name in the <title>
, and thus it makes it difficult to search for it.
It'd be ideal if URL was searchable too.
Thanks!
hi, I've used the workflows history search function very often which was very useful for multi device use.
To better compliment me and those who like to manage single tabs per Firefox window, is it possible to configure the history search script to launch the selected item in a new window instead of opening a new tab/ replacing the current active tab?
Hi
I'm experiencing a recurring issue whereby the workflow suddenly "breaks":
Gives me a timeout when I try to invoke the workflow in FF via my defined shortcut, but sometimes just says "loading" indefinitely.
When I try to re-register the the workflow via 'ffass > Register...' it just says "loading" indefintely.
My fix thus far has been a delete & reinstall of the workflow.
Thanks for the useful workflow, hope this helps
Hi,
Is this within Alfred workflow capability, to query open tabs, history, and bookmarks, just with one single keyword (perhaps fx
or ff
), and then use %
to specify scope in open tabs, *
for bookmarks specifically etc., just as Awesome Bar does?
I'm a heavy user of firefox bm tags
It's an awesome feature that helps group bookmarks.
Currently, firefox allows searching for a bm by tag in its search bar by starting the query with an asterisk
* banana
will search for all bookmarks tagged with a banana
tag.
I'll be more than happy to help to add this functionality to your awesome workflow.
Given some instructions. I've tried to figure it for myself but it seems there are many things going on in there
a client that communicates with a local service over gRPC which communicates with a firefox extension process via STDIN/STOUT.
lots of fun :)
gr8 work.
cheers.
p.s
adding favicons of bookmarks to the alfred output will be awesome.
in addition.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Work_with_the_Bookmarks_API
I can't find anything related to bookmarks in the mozila extensions API docs....
The only thing ive managed to do in order to find bookmarks by tag is this ugly bash script
BOOKMARKS="/Users/domrevigor/Library/Application Support/Firefox/Profiles/current.profile/bookmarks.html"
lines=($(egrep -no 'TAGS="[^"]+' "${BOOKMARKS}" | grep $1 | cut -d ":" -f1))
links=($(for i in ${lines[@]}; do sed -n ${i}p "${BOOKMARKS}" ;done | egrep -o 'HREF="[^"]*' | cut -d '"' -f2))
tags=($(for i in ${lines[@]}; do sed -n ${i}p "${BOOKMARKS}" ;done | egrep -o 'TAGS="[^"]*' | cut -d '"' -f2))
IFS=$(echo -en "\n\b")
titles=($(for i in ${lines[@]}; do sed -n ${i}p "${BOOKMARKS}" ;done | egrep -o '.*' | egrep -o ">[^<]+" | cut -d '>' -f2))
for i in `seq ${#lines}`;do /usr/local/bin/jq -n "{\"title\":\"${titles[$i]}\","arg":\"${links[$i]}\",\"subtitle\":\"${tags[$i]}\",\"id\":\"${titles[$i]}\"}"; done | /usr/local/bin/jq -s '{"items":map(.)}'
which just greps over bookmarks.html file.
however, this file is updated only after browser restart, which sucks.
Hey all--This is a support request, I'm pretty sure, and not something that is wrong with the workflow/extension. Which is, by the way, absolutely incredible and a huge benefit to my daily work. So, thank you for that!
The issue: I had FF history working great for probably 6 mos. Maybe a month ago, it suddenly began telling me, "Query too short, Please enter at least 3 characters," no matter how long my search string was. Figuring it was a result of some Alfred update I had unthinkingly installed, I removed and re-installed both the workflow and the FF extension. History was back and working fine, but only for a few days. Soon, the "Query too short" error recurred. Any idea how I can debug/fix this? Thank you for any pointers!
Edit: I've found that simply disabling and immediately re-enabling the extension consistently fixes this problem for me. (It recurs every 2-3 months, but with a fix this simple that's no big deal.)
If I pull up the list of tabs, it does display correctly, but when I select one, the focus moves to firefox, but the tab switch is not performed. The extension does say "connected" and everything else does seem to be working, just not going to any particular page on firefox.
Any ideas why it does not work?
[18:51:17.661] ERROR: Firefox Assistant[Script Filter] Code 127: .../Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/95DE088A-0C35-4969-9C51-0BEE9ED65DF7:1: bad CPU type in executable: ./alfred-firefox
I am on m1, could it be the case? Does the extension supports m1?
Extension should also check whether it's actually connected to the workflow.
Alternatively, add "reconnect" button to extension or, at least, instructions on how to force the extension to reconnect (disable and then re-enable it).
This is a requirement for #2 to work smoothly: without it, starting a new Firefox will replace the already-running browser's socket, but the extension will never know and will still think it's connected (the native client is still running; it's just not what the workflow is talking to).
Many times I have multiple tabs with the same page opened. With many tabs open it's easier to open a new tab than search for an existing one.
It would be nice if there was an option to open a bookmark in a new tab, unless it's already open. In that case switch to it.
What do you think?
There's not really any information in the readme that states the workflow only supports Alfred version 4+ (other than if you read one of the screenshots of the browser extension).
It would just save people the time of downloading the workflow and the extension, only to realise they can't actually use it.
After upgrading to Alfred 5 the plugin does not work anymore.
Tried reinstalling and resetting up.
Dropbox v166 also have some issues with Alfred configuration.
Any ideas? Have to switch back to Safari 🤪
OSX 10.15.7 | Alfred 4.2.1 | Firefox 82.0.3
Workflow installed and Firefox plugin installed
When I type FFAS to Alfred and hit enter the error No Connection to Browser - dial unix /tmp/alfred-firefox.501.sock: connect: no such file or directory
comes up. Registering and reinstalling doesn't help.
If I run env -i server.sh
in Terminal, following comes up:
PID 1700 is ps aux:
There was same kind of problems in this conversation: https://www.alfredforum.com/topic/14284-firefox-assistant/#comments anything found from there didn't help.
Are there any use cases for calling the workflow—or third-party workflows—from the extension?
Workflow is working just fine on intel mac. Try to run this workflow on an m1 and getting this error message.
I setup the workflow and it runs well. Only issue that on activation it does nothing as I don't have Firefox installed but instead use Firefox Nightly.
I couldn't find in settings if it's possible to change the app. I think it would be a nice feature as not everyone uses default Firefox.
Thank you.
I had the add-in for Firefox and the Alfred Workflow working just fine but now I cannot get the add-in to connect to the workflow. I have removed the add-in and then added it back via the workflow and then used the Register Workflow with browser but I when I attempt to activate the add-in, it still shows that status of disconnected. I have tried closing Firefox after removing the add-in and then restarting it before I re-install the add-in. I still get disconnected.
The latest entries from net.deanishe.alfred.firefox-assistant.log:
20:03:02 ------------------ 10.154971ms -------------------
20:03:04 [warning] info.plist not found. Guessed: /Users/davemack/Documents/Alfred.alfredpreferences/workflows/user.workflow.D2FA852E-1E0B-4467-AC21-632D2B2BACB1
20:03:04 ----- Firefox Assistant/0.2.1 (AwGo/0.20.2) ------
20:03:04 loaded URL action "README" from "~/Documents/Alfred.alfredpreferences/workflows/user.workflow.D2FA852E-1E0B-4467-AC21-632D2B2BACB1/scripts/README.md"
20:03:04 loaded URL action "" from "~/Documents/Alfred.alfredpreferences/workflows/user.workflow.D2FA852E-1E0B-4467-AC21-632D2B2BACB1/scripts/.DS_Store"
20:03:04 loaded URL action "Open in Chrome" from "~/Documents/Alfred.alfredpreferences/workflows/user.workflow.D2FA852E-1E0B-4467-AC21-632D2B2BACB1/scripts/Open in Chrome.sh"
20:03:04 loaded URL action "Open in Default Application" from "~/Documents/Alfred.alfredpreferences/workflows/user.workflow.D2FA852E-1E0B-4467-AC21-632D2B2BACB1/scripts/Open in Default Application.sh"
20:03:04 loaded URL action "Open in Firefox" from "~/Documents/Alfred.alfredpreferences/workflows/user.workflow.D2FA852E-1E0B-4467-AC21-632D2B2BACB1/scripts/Open in Firefox.sh"
20:03:04 loaded URL action "Open in Safari" from "~/Documents/Alfred.alfredpreferences/workflows/user.workflow.D2FA852E-1E0B-4467-AC21-632D2B2BACB1/scripts/Open in Safari.sh"
20:03:04 Registered. Re-open Firefox extension to connect.
20:03:04 Sent 1 result(s) to Alfred
20:03:04 wrote native app manifest to "~/Library/Application Support/Mozilla/NativeMessagingHosts/net.deanishe.alfred.firefox.json"
20:03:04
{
"name": "net.deanishe.alfred.firefox",
"description": "Alfred plugin for Firefox",
"path": "/Users/davemack/Documents/Alfred.alfredpreferences/workflows/user.workflow.D2FA852E-1E0B-4467-AC21-632D2B2BACB1/server.sh",
"type": "stdio",
"allowed_extensions": [
"[email protected]"
]
}
20:03:04 ------------------- 7.883901ms -------------------
20:09:57 [warning] info.plist not found. Guessed: /Users/davemack/Documents/Alfred.alfredpreferences/workflows/user.workflow.D2FA852E-1E0B-4467-AC21-632D2B2BACB1
20:09:57 ----- Firefox Assistant/0.2.1 (AwGo/0.20.2) ------
20:09:57 loaded URL action "Open in Default Application" from "~/Documents/Alfred.alfredpreferences/workflows/user.workflow.D2FA852E-1E0B-4467-AC21-632D2B2BACB1/scripts/Open in Default Application.sh"
20:09:57 loaded URL action "Open in Firefox" from "~/Documents/Alfred.alfredpreferences/workflows/user.workflow.D2FA852E-1E0B-4467-AC21-632D2B2BACB1/scripts/Open in Firefox.sh"
20:09:57 loaded URL action "Open in Safari" from "~/Documents/Alfred.alfredpreferences/workflows/user.workflow.D2FA852E-1E0B-4467-AC21-632D2B2BACB1/scripts/Open in Safari.sh"
20:09:57 loaded URL action "README" from "~/Documents/Alfred.alfredpreferences/workflows/user.workflow.D2FA852E-1E0B-4467-AC21-632D2B2BACB1/scripts/README.md"
20:09:57 loaded URL action "" from "~/Documents/Alfred.alfredpreferences/workflows/user.workflow.D2FA852E-1E0B-4467-AC21-632D2B2BACB1/scripts/.DS_Store"
20:09:57 loaded URL action "Open in Chrome" from "~/Documents/Alfred.alfredpreferences/workflows/user.workflow.D2FA852E-1E0B-4467-AC21-632D2B2BACB1/scripts/Open in Chrome.sh"
20:09:57 latest version: 0.2.1
20:09:57 Sent 7 result(s) to Alfred
20:09:57 ------------------ 10.381395ms -------------------
Latest entries from net.deanishe.alfred.firefox-assistant.server.log
1068] 19:00:34 server.go:129: browser="Firefox"
[1068] 19:00:34 rpc_server.go:291: serving RPC on "/tmp/alfred-firefox.1279531516.sock" ...
[1068] 19:00:34 firefox.go:137: sent command #1603839634.1 - "ping"
[1068] 19:00:34 firefox.go:113: received response #1603839634.1 - 38 bytes
[1068] 19:00:34 util.go:57: 293.267231ms ⧗ ping
[1068] 19:00:34 server.go:151: ping => "pong"
[1068] 19:00:34 firefox.go:113: received response #1603839634.1 - 77 bytes
[1068] 19:00:34 firefox.go:146: [ERROR] no handler for message "1603839634.1"
Related to #4
Great plugin, thanks for creating it !
I see that tab search is limited to the window title. I often want to search tabs by URL.
Is there any easy way to add url filtering/searching of tabs ?
Add description of how the workflow and extension work to docs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.