Açık kaynak yardımcı programını da kullanabilirsiniz chrome-cli. Homebrew ile kurabilirsiniz:
brew install chrome-cli
Ayrıca, README'den bir şeyi not edin:
Javascript çalıştırmak için önce izin vermelisiniz View > Developer > Allow JavaScript from Apple Events.
İşte böyle görünüyor:
$ chrome-cli list tabs
[1889] Edit - Super User
[1918] prasmussen/chrome-cli: Control Google Chrome from the command line
[1905] Yotto Winter Mix 19 by Yotto
$ chrome-cli list links
[1889] /superuser//posts/1407956/edit
[1918] https://github.com/prasmussen/chrome-cli
[1905] https://soundcloud.com/yotto/yotto-winter-mix-2019