semvec/pypi-packages huggingface dataset:
mac-speech-commands 2020.12.3
extend macOS speech commands
License: Unlicense
Keywords: speech tts

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/mac-speech-commands.svg?maxAge=3600)](https://pypi.org/project/mac-speech-commands/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-speech-commands
```

#### Examples
russian minutes plural:
```python
import mac_speech_commands
import plural_ru

def ru_minutes(value):
    return "%s %s" % (value.replace("1","одну"),plural_ru.ru(int(value),['минуту','минуты','минут']))

text="... длится [[ru:minutes 10]]"
functions = {"ru:minutes":ru_minutes}

mac_speech_commands.replace(text,functions)
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-speech-cache 2020.12.3
macOS speech cache
License: Unlicense
Keywords: speech tts

<!--
https://readme42.com
-->



[![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/mac-speech-cache.svg?maxAge=3600)](https://pypi.org/project/mac-speech-cache/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-speech-cache
```

```bash
$ [sudo] npm i -g mac-speech-cache
```

#### How it works
```
~/Library/Caches/speech-cache/<hash>.aiff
```

#### Examples
```bash
# say "$@"
$ afplay "$(speech-cache "$@")"
```

make cache for multiple files and voices:
```bash
$ find . -name "*.txt" | xargs -I{} speech-cache -f {} -v Milena
$ find . -name "*.txt" | xargs -I{} speech-cache -f {} -v Yuri
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-slideshow 2020.12.3
macOS slideshow screensaver
License: Unlicense
Keywords: slideshow screensaver

<!--
https://readme42.com
-->



[![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/mac-slideshow.svg?maxAge=3600)](https://pypi.org/project/mac-slideshow/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-slideshow
```

```bash
$ [sudo] npm i -g mac-slideshow
```

#### Examples
```bash
$ slideshow path/to/images
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-screensaver 2020.12.3
macOS screensaver commands
License: Unlicense
Keywords: screensaver

<!--
https://readme42.com
-->



[![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/mac-screensaver.svg?maxAge=3600)](https://pypi.org/project/mac-screensaver/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-screensaver
```

```bash
$ [sudo] npm i -g mac-screensaver
```

#### Examples
```bash
$ screensaver start
$ screensaver pid
1488
$ screensaver stop
```

```bash
$ screensaver name
iLifeSlideshows
$ screensaver names
Random
Flurry
Arabesque
Word of the Day
iTunes Artwork
Computer Name
Shell
FloatingMessage
iLifeSlideshows
```
wait while screensaver is active
```bash
$ screensaver start
$ screensaver wait
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-say 2020.12.3
macOS tts. say python interface
License: Unlicense
Keywords: say

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/mac-say.svg?maxAge=3600)](https://pypi.org/project/mac-say/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-say
```

#### Examples
```python
>>> import mac_say
>>> mac_say.say("hello world")
>>> mac_say.say(["-f","file.txt","-v","Alex"])
```

voices list
```python
>>> mac_say.voices("en")
[('Alex', 'en_US', 'Most people recognize me by my voice.'), ...]
```

background - add `background=True`
```python
>>> mac_say.say("hello world",background=True)
```

Google Text-To-Speech
```python
>>> mac_say.gtts.mp3("en","hello world")
/Users/username/Library/Caches/say/<hash>.mp3

>>> mac_say.gtts.say("en","hello world")
```

```bash
$ python -m mac_say.gtts "en" "hello world"
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-opera 2020.12.3
macOS Opera.app scripts
License: Unlicense
Keywords: opera

<!--
https://readme42.com
-->



[![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/mac-opera.svg?maxAge=3600)](https://pypi.org/project/mac-opera/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-opera
```

```bash
$ [sudo] npm i -g mac-opera
```

#### Config
```bash
$ export OPERA_TIMEOUT=10 # 5 by default
```

#### Examples
url(s)
```bash
$ opera urls
https://github.com/
https://google.com/
$ opera url
https://github.com/
```

open/refresh
```bash
$ opera open "https://github.com/" "https://google.com/"
$ opera refresh "https://github.com/"
```

fullscreen
```bash
$ opera fullscreen-enter
$ opera fullscreen-detect
1
$ opera fullscreen-exit
```

frontmost (`1` or `0`)
```bash
$ opera frontmost
0
```

`Opera.app` process
```bash
$ opera pid
42
$ opera isready 5 # timeout 5 seconds
1
$ opera kill
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-open-apps 2020.12.3
open multiple macOS apps
License: Unlicense
Keywords: app

<!--
https://readme42.com
-->



[![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/mac-open-apps.svg?maxAge=3600)](https://pypi.org/project/mac-open-apps/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-open-apps
```

```bash
$ [sudo] npm i -g mac-open-apps
```

#### Examples
```bash
$ open-apps Discord iTerm "Google Chrome" Skype "Sublime Text" Terminal
```

`~/Library/LaunchAgents/apps.plist`
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>apps</string>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/local/bin/open-apps</string>
        <string>Discord</string>
        <string>iTerm</string>
        <string>Google Chrome</string>
        <string>Skype</string>
        <string>Sublime Text</string>
        <string>Terminal</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
</dict>
</plist>
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-logs 2020.12.3
~/Library/Logs macOS .log files
License: Unlicense
Keywords: logs

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/mac-logs.svg?maxAge=3600)](https://pypi.org/project/mac-logs/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-logs
```

#### Features
`~/Library/Logs` MacOS `.log` files

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-localized 2020.12.3
macOS .localized localized folder name
License: Unlicense
Keywords: localization

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/mac-localized.svg?maxAge=3600)](https://pypi.org/project/mac-localized/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-localized
```

#### How it works
```
Release Notes.localized/
    .localized/
        en.strings
        de.strings
        ja.strings
```

`.strings`:
```
"Release Notes" = "Localized name";
```

#### Examples
```python
>>> import mac_localized
>>> mac_localized.mkdir("folder",ru="ru translation",de="de translation")
'folder.localized'

>>> mac_localized.load("folder")
{'ru':'ru translation','de':'de translation'}

>>> mac_localized.update("folder",ru="new ru translation",de="new de translation")

>>> mac_localized.get("folder","ru")
'new ru translation'

>>> mac_localized.rm("folder",["ru"])
>>> mac_localized.rm("folder")  # rm all localizations
```

#### Links
+ [Localizing the Name of a Directory](https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemAdvancedPT/LocalizingtheNameofaDirectory/LocalizingtheNameofaDirectory.html)
+   [Display Names](https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFileSystem/Articles/DisplayNames.html)

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-itunes 2020.12.3
macOS iTunes.app scripts
License: Unlicense
Keywords: itunes

<!--
https://readme42.com
-->



[![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/mac-itunes.svg?maxAge=3600)](https://pypi.org/project/mac-itunes/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-itunes
```

```bash
$ [sudo] npm i -g mac-itunes
```

#### Examples
```bash
$ itunes play
$ itunes pause
$ itunes stop
$ itunes next
$ itunes previous
```

volume
```bash
$ itunes volume 50
$ itunes volume
50
```

mute
```bash
$ itunes mute
$ itunes muted
1
$ itunes unmute
```

frontmost (`1` or `0`)
```bash
$ itunes frontmost
0
```

`iTunes.app` process
```bash
$ itunes pid
42
$ itunes kill
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-headphones 2020.12.3
detect if headphones are plugged
License: Unlicense
Keywords: headphones

<!--
https://readme42.com
-->



[![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/mac-headphones.svg?maxAge=3600)](https://pypi.org/project/mac-headphones/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-headphones
```

```bash
$ [sudo] npm i -g mac-headphones
```

#### Examples
plugged:
```bash
$ headphones
1
```

not plugged:
```bash
$ headphones
0
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-finder 2020.12.3
macOS Finder scripts
License: Unlicense
Keywords: Finder

<!--
https://readme42.com
-->



[![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/mac-finder.svg?maxAge=3600)](https://pypi.org/project/mac-finder/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-finder
```

```bash
$ [sudo] npm i -g mac-finder
```

#### Examples
create Finder alias
```bash
$ finder-alias ~/Downloads ~/Downloads2
```

read/write Finder comment
```bash
$ finder-comment path "comment value"
$ finder-comment path
comment value
```

set Finder icon
```bash
$ finder-icon path image.png
```

```bash
$ finder-reveal ~/git
```

get Finder selection
```bash
$ finder-selection
/Users/username/Desktop
/Users/username/Downloads
```

execute command from every selected Finder directory
```bash
$ finder-exec python setup.py install
```

frontmost (`1` or `0`)
```bash
$ finder-frontmost
0
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-dock 2020.12.3
macOS Dock scripts
License: Unlicense
Keywords: Dock

<!--
https://readme42.com
-->



[![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/mac-dock.svg?maxAge=3600)](https://pypi.org/project/mac-dock/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-dock
```

```bash
$ [sudo] npm i -g mac-dock
```

#### Examples
```bash
$ dock add-app /Applications/iTunes.app; killall Dock
```

```bash
# arrangement:  1 - name (default), 2 - added, 3 - modification, 4 - creation, 5 - kind
# displayas:    1 - folder, 2 - stack (default)
# showas:       1 - beep, 2 - grid, 3 - list, 4 - auto (default)
$ dock add-folder --arrangement=2 --displayas=1 --showas=1 ~/Downloads; killall Dock
```

```bash
$ dock apps
/Users/username/Applications/Google Chrome.app
/Users/username/Applications/Sublime Text.app
/Applications/Utilities/Terminal.app
/Applications/iTunes.app
```

```bash
$ dock folders
/Users/username/Downloads
```


```bash
$ dock rm /Applications/iTunes.app ~/Downloads; killall Dock
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-display 2020.12.3
macOS display sleep/wake
License: Unlicense
Keywords: display

<!--
https://readme42.com
-->



[![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/mac-display.svg?maxAge=3600)](https://pypi.org/project/mac-display/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-display
```

```bash
$ [sudo] npm i -g mac-display
```

#### Examples
```bash
$ display sleep && display state
0
$ display wake && display state
1
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-desktop 2020.12.3
macOS desktop show/hide
License: Unlicense
Keywords: desktop

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/mac-desktop.svg?maxAge=3600)](https://pypi.org/project/mac-desktop/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-desktop
```

#### Examples
```python
>>> import mac_desktop
>>> if mac_desktop.visibility()<0.7:    # Desktop hidden?
...     mac_desktop.toggle()            # show Desktop
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-comment 2020.12.3
macOS Finder comments
License: Unlicense
Keywords: comment

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/mac-comment.svg?maxAge=3600)](https://pypi.org/project/mac-comment/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-comment
```

#### Examples
```python
>>> import mac_comment
>>> mac_comment.write(__file__,"comment")
>>> mac_comment.read(__file__)
'comment'
```

```bash
$ python -m mac_comment ~ "CLI works too"
$ python -m mac_comment ~
CLI works too
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-colors 2020.12.3
macOS Finder color tags
License: Unlicense
Keywords: color tag

<!--
https://readme42.com
-->


[![](https://img.shields.io/pypi/v/mac-colors.svg?maxAge=3600)](https://pypi.org/project/mac-colors/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-colors
```

#### Requirements
```bash
$ brew install tag
```

#### Examples
```python
>>> import mac_colors
>>> path = ["path/to/file"]
>>> mac_colors.red(path)
```
get
```python
>>> mac_colors.get(path)
{'path/to/file':["red"]}
```
set multiple colors
```python
>>> mac_colors.replace(["blue","red"],path)
```
remove colors
```python
>>> mac_colors.none(path)
```

#### Links
+   [tag](https://github.com/jdberry/tag)

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-chrome 2020.12.3
macOS Google Chrome.app scripts
License: Unlicense
Keywords: google chrome

<!--
https://readme42.com
-->



[![](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/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### 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
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-brave 2020.12.3
macOS Brave Browser.app scripts
License: Unlicense
Keywords: Brave Browser

<!--
https://readme42.com
-->



[![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/mac-brave.svg?maxAge=3600)](https://pypi.org/project/mac-brave/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-brave
```

```bash
$ [sudo] npm i -g mac-brave
```

#### Config
```bash
$ export BRAVE_TIMEOUT=10 # 5 by default
```

#### Examples
url(s)
```bash
$ brave urls
https://github.com/
https://google.com/
$ brave url
https://github.com/
```

open/refresh
```bash
$ brave open "https://github.com/" "https://google.com/"
$ brave refresh "https://github.com/"
```

fullscreen
```bash
$ brave fullscreen-enter
$ brave fullscreen-detect
1
$ brave fullscreen-exit
```

frontmost (`1` or `0`)
```bash
$ brave frontmost
0
```

`Brave Browser.app` process
```bash
$ brave pid
42
$ brave isready 5 # timeout 5 seconds
1
$ brave kill
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-appify 2020.12.3
create mac app from a shell script
License: Unlicense
Keywords: mac app

<!--
https://readme42.com
-->



[![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/mac-appify.svg?maxAge=3600)](https://pypi.org/project/mac-appify/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-appify
```

```bash
$ [sudo] npm i -g mac-appify
```

#### Features
+  script [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) required

#### Examples
```bash
$ appify script.sh name.app
$ appify script.sh name.app Icon.png
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-app-pid 2020.12.3
get macOS app pid
License: Unlicense
Keywords: mac app

<!--
https://readme42.com
-->



[![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/mac-app-pid.svg?maxAge=3600)](https://pypi.org/project/mac-app-pid/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-app-pid
```

```bash
$ [sudo] npm i -g mac-app-pid
```

#### Features
+   accepts app name, bundleID, path

#### Examples
```bash
$ app-pid "itunes"
<pid>
$ app-pid "com.apple.iTunes"
<pid>
$ app-pid "/Applications/iTunes.app"
<pid>
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-app-path 2020.12.3
find macOS app path
License: Unlicense
Keywords: mac app

<!--
https://readme42.com
-->



[![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/mac-app-path.svg?maxAge=3600)](https://pypi.org/project/mac-app-path/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-app-path
```

```bash
$ [sudo] npm i -g mac-app-path
```

#### Examples
```bash
$ app-path "Google Chrome"
/Users/username/Applications/Google Chrome.app
$ app-path "Activity Monitor"
/Applications/Utilities/Activity Monitor.app
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-app-kill 2020.12.3
kill macOS app(s) by name, bundleID, path
License: Unlicense
Keywords: mac app

<!--
https://readme42.com
-->



[![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/mac-app-kill.svg?maxAge=3600)](https://pypi.org/project/mac-app-kill/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-app-kill
```

```bash
$ [sudo] npm i -g mac-app-kill
```

#### Examples
```bash
$ app-kill  "VLC" "com.apple.iTunes" "/Applications/iBooks.app"
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-app-generator 2020.12.3
Mac app generator
License: Unlicense
Keywords: mac app appify

<!--
https://readme42.com
-->



[![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/mac-app-generator.svg?maxAge=3600)](https://pypi.org/project/mac-app-generator/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-app-generator
```

```bash
$ [sudo] npm i -g mac-app-generator
```

#### Features
shell (mini) and python (full) versions

#### Examples
create app from shell script
```bash
$ mac-app-generator script.sh name.app
$ mac-app-generator script.sh name.app Icon.png
```

create app from python script
```python
>>> mac_app.App(app_script="file.py", app_path="name.app").create_app()
```

create app from a python class
```python
import mac_app_generator
class MyApp(mac_app_generator.App):
    def run(self):
        pass

if __name__ == "__main__":
    MyApp().run()
```

```python
>>> MyApp().create_app()
```

#### Related
+   [`commands-generator` - shell commands generator](https://pypi.org/project/commands-generator/)
+   [`launchd-generator` - launchd.plist generator](https://pypi.org/project/launchd-generator/)
+   [`readme-generator` - `README.md` generator](https://pypi.org/project/readme-generator/)
+   [`setupcfg-generator` - `setup.cfg` generator](https://pypi.org/project/setupcfg-generator/)
+   [`travis-generator` - `.travis.yml` generator](https://pypi.org/project/travis-generator/)

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>
mac-app-frontmost 2020.12.3
macOS frontmost app info
License: Unlicense
Keywords: mac app

<!--
https://readme42.com
-->



[![](https://img.shields.io/badge/OS-macOS-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/mac-app-frontmost.svg?maxAge=3600)](https://pypi.org/project/mac-app-frontmost/)
[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)

### Installation
```bash
$ [sudo] pip install mac-app-frontmost
```

```bash
$ [sudo] npm i -g mac-app-frontmost
```

#### Examples
```bash
$ app-frontmost --bundleid
com.apple.Terminal

$ app-frontmost --name
Terminal

$ app-frontmost --path
/Applications/Utilities/Terminal.app

$ app-frontmost --pid
304
```

<p align="center">
    <a href="https://readme42.com/">readme42.com</a>
</p>