Mac Notifier
Mac_notifier is a command line utility to display notifications, alerts and dialogs on mac. It executes apple scripts underneath to achieve the purpose.
Usage
dsp notify 'Hello wolrd' # send notification
dsp notify -t 'Hurry up!' 'Time is precious' # send notification with title
dsp alert WARNING # display alert
dsp alert -b '["Sorry", "I will"]' 'Will you marry me?' # display alert with customized buttons
dsp dialog 'Man is not made for defeat. A man can be destroyed but not defeated.'
For more detailed usage, refer to command help.
Command Help
Use dsp --help to show help:
Usage: dsp [OPTIONS] COMMAND [ARGS]...
Display notifications, alerts and dialogs on mac
Options:
--help Show this message and exit.
Commands:
alert Display an alert on mac
dialog Display a dialog on mac
notify Display a notification on mac
Use dsp subcommand --help to show help for subcommands, for example:
Usage: dsp alert [OPTIONS] CONTENT
Display an alert on mac
Options:
-m, --message TEXT Explanatory message.
-b, --buttons TEXT List of button names in json format, e.g. ["Cancel",
"OK"].
-d, --default INTEGER Index of default buttons, 1 based.
-l, --lasting INTEGER Number of seconds before dismissing. Wait forever if
not specified.
--help Show this message and exit.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mac_notifier-0.0.3.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mac_notifier-0.0.3.tar.gz.
File metadata
- Download URL: mac_notifier-0.0.3.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28cfd67381a5a9417af720b0383d330c5c7ffde3a926b4fc5176525da1badb83
|
|
| MD5 |
3988bb349e611486e83dca5663ca01e9
|
|
| BLAKE2b-256 |
d5c536925571272a04f32d78fa5b8655abfa14649b6770319967d1f008ff1c55
|
File details
Details for the file mac_notifier-0.0.3-py3-none-any.whl.
File metadata
- Download URL: mac_notifier-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c9a5fd967941876df433494c979fec5330a2daaf22ce30cc0bab91afd57c004
|
|
| MD5 |
0b942bef0af698f191590e57a38fe205
|
|
| BLAKE2b-256 |
0664703ca141856de2e21524d8ca66dc877d77df454cba0f5f21fcc1abb50282
|