Constuct your QuickSummay with OpenAI at Mac Automator QucikAction
Demo
Steps Overview
- Apply an Open AI API Key and set the key
- Set the key at your ~/.bashrc or ~/.zshrc
- Clone this python scripts
- Install related python packages(pyperclip/openai) at your python environment
- Constuct QuickAction at Automator
—
- Apply an Open AI API Key at OpenAI API
2. Set the key at your ~/.bashrc or ~/.zshrc
- Just append one line to add the key at environment variable
export OPENAI_API_KEY="past_your_open_ai_key"
3. Clone this python scripts
$git clone https://github.com/MIBlue119/quick_summary
4. Install related python packages(pyperclip/openai) at your python environment
$pip install pyperclip openai
5. Constuct QuickAction at Automator
- Seach
Automator
at your lauchpad and open it
- Select add new document and Choose Quick Action
- Build the workflow blocks, search
Copy to Clipboard
- Searh Run Shell Script and drag it to right side too. And source the .zshrc to import your key and run the script with your python
source ~/.zshrc
/Users/weirenlan/.pyenv/versions/openai/bin/python /Users/weirenlan/pyscripts/quick_summary/quick_summary.py
- Add the output using clipboard item to receive the results
- Add the notification item
- Save the workflow and give it a name with command+s