File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
commands/productivity/macocr Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # Dependencies:
4
- # macOCR: https://github.com/schappim/macOCR
5
-
6
- # Recommended installation:
7
- # brew install schappim/ocr/ocr
3
+ # Dependency: This script requires `macOCR` to be installed: https://github.com/schappim/macOCR
4
+ # Install via homebrew: `brew install schappim/ocr/ocr`
8
5
9
6
# Required parameters:
10
7
# @raycast.schemaVersion 1
20
17
# @raycast.author Jakub Lanski
21
18
# @raycast.authorURL https://github.com/jaklan
22
19
20
+ if ! command -v ocr & > /dev/null; then
21
+ echo " macOCR has to be installed (https://github.com/schappim/macOCR)" ;
22
+ exit 1;
23
+ fi
24
+
23
25
result=$( ocr -l ${1:- " en-US" } )
24
26
echo $result | tee >( pbcopy)
You can’t perform that action at this time.
0 commit comments