prasmussen / chrome-cli

Control Google Chrome from the command line
MIT License
2.61k stars 89 forks source link

Executing chrome-cli through SSH gives blank results #88

Closed mig8447 closed 9 months ago

mig8447 commented 9 months ago

When executing chrome-cli through SSH, the list of windows and tabs are left blank, trying to use the open commands makes throws an error

macOS Ventura 13.6.4

mig8447 commented 9 months ago

What I did for this to work is to execute

osascript -e 'tell application "Google Chrome" to get number of windows'

Which then prompted the computer for automation permissions. Once accepted, chrome-cli worked like a charm through SSH