Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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 (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T21:06:09.000Z (about 4 years ago)
- Last Synced: 2024-10-31T19:39:28.646Z (3 months ago)
- Topics: applescript, chrome, cli, macos
- Language: AppleScript
- Homepage:
- Size: 26.4 KB
- Stars: 16
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/mac-chrome.svg?maxAge=3600)](https://pypi.org/project/mac-chrome/)
[![](https://img.shields.io/npm/v/mac-chrome.svg?maxAge=3600)](https://www.npmjs.com/package/mac-chrome)[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)
[![](https://github.com/andrewp-as-is/mac-chrome/workflows/tests42/badge.svg)](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
```