1#!/bin/bash 2 3# Required parameters: 4# @raycast.schemaVersion 1 5# @raycast.title ocr 6# @raycast.mode silent 7 8# Optional parameters: 9# @raycast.icon 🩻 10 11 12# Documentation: 13 14# ---- Use as Raycast Script Commands ---- 15# https://github.com/raycast/script-commands 16 17# --------- Prerequisite ---------- 18# Install this shortcut: https://www.icloud.com/shortcuts/62d081713a7140a38459eb37a92a983a 19 20 21screencapture -i /tmp/_for_ocr.png && shortcuts run "OCR" -i /tmp/_for_ocr.png 22rm /tmp/_for_ocr.png 23osascript -e "display notification \"saved to clipboard\" with title \"OCR ✅\""