i've found myself copy pasting a lot of text into ChatGPT just to summarize it. this script aims to make that easier by birning the summary to your right click context menu.
![image](https://private-user-images.githubusercontent.com/25622412/307623740-52902973-5171-41c6-9e22-e522832454fb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MTI1NDEsIm5iZiI6MTczOTYxMjI0MSwicGF0aCI6Ii8yNTYyMjQxMi8zMDc2MjM3NDAtNTI5MDI5NzMtNTE3MS00MWM2LTllMjItZTUyMjgzMjQ1NGZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA5MzcyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY2Njc1Mjk4OTc4NDQ5ZjYzMjkwNmU1ZWMxOTU0N2FlM2UwY2VkZDEwNDA0MGNmNWMwNWNkMzgwN2MyNTJmMGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.9CSIZ1qvOHhoGoz8ec6Y443lLNEr90EV2j2NIoC0N6o)
![image](https://private-user-images.githubusercontent.com/25622412/307623763-28122a26-4f0f-4f08-86f2-771a8deea2c6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MTI1NDEsIm5iZiI6MTczOTYxMjI0MSwicGF0aCI6Ii8yNTYyMjQxMi8zMDc2MjM3NjMtMjgxMjJhMjYtNGYwZi00ZjA4LTg2ZjItNzcxYThkZWVhMmM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA5MzcyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM4MjExZDM4MzQzY2FiM2YyYjUxNDA0MjJlZGY1NGEyYWU4ZjBjNjljOWY5ZGY4ZTY2NWFlODk3NWRlYmVjMzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.daJAyIkucP1vqaWBItDpsDDuz9wb5n2EhZejQxEXEjs)
- it's built on top of automator scripts in macOS. this is due to security and sandbox limitations (for a good reason)
- open ai is used to summarize. the api key will be stored in your local keychain
- when selecting text, right click and you'll find
Services
→Summarize
- open the repository with finder and double click the "Summarize.workflow". this will prompt if you want to install the script. i've added the script as reference
- select any text and click
Services
→Summarize
. if it's the first time using it, you'll have to provide an api key. it will be stored in keychain
there's a log at /tmp/right_click_summarize_script.log
you can access
if you want to update the script, make sure to also update the document.wflow
in /Summarize.workflow/Contents/
.
could be neat to build a little script to inline the script there on build.