-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work from LaunchAgents #60
Comments
I attempted to also run
When I run it from a terminal window I get:
|
@lexicalunit have you managed to fix this? experiencing the same issue |
No solution using BRAVE="osascript -e 'tell application \"System Events\" to (name of processes) contains \"Brave Browser\"'"
if test "$(eval "$BRAVE")" = "true"; then
osascript <<EOF
set titleString to ""
tell application "Brave Browser"
set window_list to every window # get the windows
repeat with the_window in window_list # for every window
set tab_list to every tab in the_window # get the tabs
repeat with the_tab in tab_list # for every tab
set the_url to the URL of the_tab # grab the URL
set titleString to titleString & the_url & "\n"
end repeat
end repeat
end tell
EOF
fi And this seems to work fine within the context of a launch agent. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a LaunchAgent that attempts to look for
meet.google.com
in my browser tabs so that I can turn on a red "in-meeting" light.Within my
zoomwatcher
script I do:And if I watch
/tmp/zoomwatcher.out
I see the "########" output, I see "my_user_name" as output by thewhoami
command, and I see "1.7.0" output as the version. But that's it. No links are listed. There are also no errors in/tmp/zoomwatcher.err
. The command seems to be working... it's just not finding any tabs/links.However If I just run
brave-cli list links
in a terminal window, it works:The text was updated successfully, but these errors were encountered: