Is standup going to be on Slack or Zoom?
This script is a companion to Keyboard Maestro.
Running the script will create a standupFormat
variable in Keyboard Maestro and set it to a
string of either zoom
or slack
.
- Keyboard Maestro
- yarn
- node
Install node-jxa
globally.
$ yarn global add node-jxa
Replace the node-jxa.js
file in the package with the file in ./docs/node-jxa.js
. The package's
file has invalid code that breaks the package.
$ cp ./docs/node-jxa.js ~/.config/yarn/global/node_modules/node-jxa/node-jxa.js
Install Standup Checker.
$ yarn
$ yarn build:global
The script executable globally.
From terminal, run
$ standup-checker
Open Keyboard Maestro
and go to Preferences > Variables
.
Look for the standupFormat
variable.
- Create a new macro or use an existing one.
- Add a new Action.
- Select
Execute
>Execute a Shell Script
. - In the new Action window, set it to:
- With input from
Nothing
. Execute text script
.ignore results
.
- With input from
- Add this to the text field:
NOTE:
PATH=/usr/local/bin:$PATH standup-checker
Keyboard Maestro
andAutomator
do not reference the system's PATH, and therefore need it specified in order to know where the global scripts are.
- Output
zoom
andslack
as strings, so that script can be used by other automating tools besidesKeyboard Maestro
.