https://github.com/andrewpetrochenkov/mac-chrome
:apple: :link: macOS Google Chrome.app scripts
https://github.com/andrewpetrochenkov/mac-chrome
applescript chrome cli macos
Last synced: 11 months ago
JSON representation
:apple: :link: macOS Google Chrome.app scripts
- Host: GitHub
- URL: https://github.com/andrewpetrochenkov/mac-chrome
- Owner: andrewpetrochenkov
- License: unlicense
- Created: 2019-05-05T16:21:58.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T21:06:09.000Z (over 5 years ago)
- Last Synced: 2025-07-12T06:48:57.403Z (11 months ago)
- Topics: applescript, chrome, cli, macos
- Language: AppleScript
- Homepage:
- Size: 26.4 KB
- Stars: 17
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[]()
[](https://pypi.org/project/mac-chrome/)
[](https://www.npmjs.com/package/mac-chrome)[](https://unlicense.org/)
[](https://github.com/andrewp-as-is/mac-chrome/actions)
### Installation
```bash
$ [sudo] pip install mac-chrome
```
```bash
$ [sudo] npm i -g mac-chrome
```
#### Config
```bash
$ export CHROME_TIMEOUT=10 # 5 by default
```
#### Examples
url(s)
```bash
$ chrome urls
https://github.com/
https://google.com/
$ chrome url
https://github.com/
```
open/refresh
```bash
$ chrome open "https://github.com/" "https://google.com/"
$ chrome refresh "https://github.com/"
```
fullscreen
```bash
$ chrome fullscreen-enter
$ chrome fullscreen-detect
1
$ chrome fullscreen-exit
```
frontmost (`1` or `0`)
```bash
$ chrome frontmost
0
```
`Google Chrome.app` process
```bash
$ chrome pid
42
$ chrome isready 5 # timeout 5 seconds
1
$ chrome kill
```