Script Kit Logo
Script Kit
by John Lindquist
Vercel OSS Program

Scripts by arvindcr4

Screenshot OCR Note

arvindcr4's avatar
arvindcr4
// Name: Screenshot OCR Note
// Description: Take a screenshot, extract text with OCR, edit and save as note
// Author: arvindcr4
import "@johnlindquist/kit"
import Tesseract from 'tesseract.js'
// Take screenshot
const buffer = await screenshot()
// Save screenshot temporarily for display
const tmpImagePath = tmpPath('screenshot-ocr.png')
await writeFile(tmpImagePath, buffer)
// Extract text using OCR
const extractedText = await div({
html: md(`
## Extracting text from screenshot...
<img src="file://${tmpImagePath}" class="max-w-full max-h-96 object-contain" />
47 lines below • View full script

Query Claude and ChatGPT Deskt

arvindcr4's avatar
arvindcr4
// Name: Query Claude and ChatGPT Desktop Apps
// Description: Automatically runs a query in both Claude and ChatGPT desktop applications
// Author: arvindcr4
// GitHub: arvindcr4
import "@johnlindquist/kit"
const query = await arg("Enter your query to send to both AI assistants:")
if (!query.trim()) {
await div(md("No query provided. Exiting..."))
exit()
}
await hide()
// Function to send query to an app
const sendQueryToApp = async (appName: string, query: string) => {
try {
// Focus the app
50 lines below • View full script