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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0NTQ5MDYsIm5iZiI6MTcyMTQ1NDYwNiwicGF0aCI6Ii8yNTYyMjQxMi8zMDc2MjM3NDAtNTI5MDI5NzMtNTE3MS00MWM2LTllMjItZTUyMjgzMjQ1NGZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIwVDA1NTAwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZmYzU0ZTljZTlmMGIzODk2OTE4YzIwMjJmMjZlM2U2ZTNhZGQ1MzY5NTFiNGNhN2MwNzUxN2NhMDQ4ZTZhZGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.FXpAEXREppWgaJkdGfzOobJmoIDL0xU4tOv0x1YgGn8)
![image](https://private-user-images.githubusercontent.com/25622412/307623763-28122a26-4f0f-4f08-86f2-771a8deea2c6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0NTQ5MDYsIm5iZiI6MTcyMTQ1NDYwNiwicGF0aCI6Ii8yNTYyMjQxMi8zMDc2MjM3NjMtMjgxMjJhMjYtNGYwZi00ZjA4LTg2ZjItNzcxYThkZWVhMmM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIwVDA1NTAwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJmZDNhOWRiZTY4ZDc0MDdhOTJjMmU4MzMxMWRjZDJkMDJlMGYyYTRhMDAxNjJiZGQ4MTA2NDgzZGI2ZTdmMTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.t_LQ6_FpGFqLyAthpaIuJFyTAC3pmVXYUyb08JieVNA)
- 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.