bundleid cn.alanhe.ocr category Self-Dev connections 2BDF6FB4-59DA-4DAF-A730-41D6E9F7F59D destinationuid 3D9792CD-01B5-483A-BC50-9FD05D0056DB modifiers 0 modifiersubtext sourceoutputuid 31C92193-9C72-4303-8E91-414EC76380C5 vitoclose destinationuid E9A9E33F-4D94-4AF5-BC40-38C018B27927 modifiers 0 modifiersubtext vitoclose 3D9792CD-01B5-483A-BC50-9FD05D0056DB destinationuid C0F55B7B-E2B9-4FF2-972C-E1E1FEC24322 modifiers 0 modifiersubtext vitoclose 4048A283-459F-41D6-8536-FB4A566BA632 destinationuid 2BDF6FB4-59DA-4DAF-A730-41D6E9F7F59D modifiers 0 modifiersubtext vitoclose 73B38A14-D76F-466E-BD83-8E888B07FBA7 destinationuid C0F55B7B-E2B9-4FF2-972C-E1E1FEC24322 modifiers 0 modifiersubtext vitoclose destinationuid 3D9792CD-01B5-483A-BC50-9FD05D0056DB modifiers 0 modifiersubtext sourceoutputuid 31C92193-9C72-4303-8E91-414EC76380C5 vitoclose 763B39BE-E24D-4449-A0E3-C2E2021623EC destinationuid 85F97DB5-3EC6-4AE2-BD8A-E53075B998BF modifiers 0 modifiersubtext vitoclose 85F97DB5-3EC6-4AE2-BD8A-E53075B998BF destinationuid D5973360-B453-4F19-BEC6-695832FF1756 modifiers 0 modifiersubtext vitoclose A2E6CA5F-BA54-489F-A6E2-A97F223F3F72 destinationuid 4048A283-459F-41D6-8536-FB4A566BA632 modifiers 0 modifiersubtext vitoclose D5973360-B453-4F19-BEC6-695832FF1756 destinationuid D1CABD85-A795-45F0-B22D-BE7AB8B76884 modifiers 0 modifiersubtext sourceoutputuid 10800F7B-3F08-4143-BE36-26AA026B629D vitoclose destinationuid A2E6CA5F-BA54-489F-A6E2-A97F223F3F72 modifiers 0 modifiersubtext sourceoutputuid 33C8F2C3-5022-45E1-9BCE-BB018EB24E5C vitoclose DE89967F-43E5-4EEC-8F93-059E5BA1FB96 destinationuid 85F97DB5-3EC6-4AE2-BD8A-E53075B998BF modifiers 0 modifiersubtext vitoclose E9A9E33F-4D94-4AF5-BC40-38C018B27927 destinationuid 73B38A14-D76F-466E-BD83-8E888B07FBA7 modifiers 0 modifiersubtext vitoclose createdby Alan He description Get the text in the screenshot to the clipboard disabled name OCR objects config openwith sourcefile OCR-v3.shortcut type alfred.workflow.action.openfile uid D1CABD85-A795-45F0-B22D-BE7AB8B76884 version 3 config tasksettings target_shortcut OCR-v3 taskuid com.alfredapp.automation.core/shortcuts/shortcut.installed type alfred.workflow.automation.task uid 85F97DB5-3EC6-4AE2-BD8A-E53075B998BF version 1 config argumenttype 2 keyword ocr subtext Get the text in the screenshot to the clipboard text OCR withspace type alfred.workflow.input.keyword uid 763B39BE-E24D-4449-A0E3-C2E2021623EC version 1 config conditions inputstring matchcasesensitive matchmode 6 matchstring outputlabel Missing Shortcut uid 10800F7B-3F08-4143-BE36-26AA026B629D inputstring matchcasesensitive matchmode 5 matchstring outputlabel Has install uid 33C8F2C3-5022-45E1-9BCE-BB018EB24E5C elselabel hideelse type alfred.workflow.utility.conditional uid D5973360-B453-4F19-BEC6-695832FF1756 version 1 config tasksettings taskuid com.alfredapp.automation.core/screen-capture/screenshot.interactive type alfred.workflow.automation.task uid A2E6CA5F-BA54-489F-A6E2-A97F223F3F72 version 1 config action 0 argument 0 focusedappvariable focusedappvariablename hotkey 26 hotmod 1179648 hotstring 7 leftcursor modsmode 0 relatedAppsMode 0 type alfred.workflow.trigger.hotkey uid DE89967F-43E5-4EEC-8F93-059E5BA1FB96 version 2 config concurrently escaping 102 script # 如果缓存目录不存在则创建 [[ -d "${alfred_workflow_cache}" ]] || mkdir -p "${alfred_workflow_cache}" # 设置临时文件路径 tempFile="${alfred_workflow_cache}/temp.png" # 判断传入的第一个参数是否为文件,注意 if 后面的空格和 ] 前的空格 if [[ -f "$1" ]]; then mv "$1" "$tempFile" echo -n "$tempFile" else echo -n 0 fi scriptargtype 1 scriptfile type 0 type alfred.workflow.action.script uid 4048A283-459F-41D6-8536-FB4A566BA632 version 2 config lastpathcomponent onlyshowifquerypopulated removeextension text {query} title OCR to clipboard type alfred.workflow.output.notification uid C0F55B7B-E2B9-4FF2-972C-E1E1FEC24322 version 1 config argument No text was extracted by OCR. passthroughargument variables type alfred.workflow.utility.argument uid 3D9792CD-01B5-483A-BC50-9FD05D0056DB version 1 config conditions inputstring matchcasesensitive matchmode 0 matchstring 0 outputlabel uid 31C92193-9C72-4303-8E91-414EC76380C5 elselabel else hideelse type alfred.workflow.utility.conditional uid 2BDF6FB4-59DA-4DAF-A730-41D6E9F7F59D version 1 config inputmode 1 outputmode 1 shortcut OCR-v3 type alfred.workflow.automation.runshortcut uid E9A9E33F-4D94-4AF5-BC40-38C018B27927 version 1 config conditions inputstring matchcasesensitive matchmode 0 matchstring outputlabel uid 31C92193-9C72-4303-8E91-414EC76380C5 elselabel else hideelse type alfred.workflow.utility.conditional uid 73B38A14-D76F-466E-BD83-8E888B07FBA7 version 1 readme # OCR > Activate OCR keywords, select the screen area, and press Enter to immediately obtain the text. Use the built-in OCR, no need to install dependencies. 1. support hotkey trigger, recommend setting the hotkey to `⌘ ⇧ 7`. 2. type keyword `ocr` to trigger uidata 2BDF6FB4-59DA-4DAF-A730-41D6E9F7F59D xpos 770 ypos 415 3D9792CD-01B5-483A-BC50-9FD05D0056DB xpos 1260 ypos 410 4048A283-459F-41D6-8536-FB4A566BA632 note move screenshot xpos 580 ypos 390 73B38A14-D76F-466E-BD83-8E888B07FBA7 xpos 1080 ypos 565 763B39BE-E24D-4449-A0E3-C2E2021623EC xpos 30 ypos 50 85F97DB5-3EC6-4AE2-BD8A-E53075B998BF colorindex 9 xpos 210 ypos 50 A2E6CA5F-BA54-489F-A6E2-A97F223F3F72 xpos 590 ypos 175 C0F55B7B-E2B9-4FF2-972C-E1E1FEC24322 xpos 1555 ypos 390 D1CABD85-A795-45F0-B22D-BE7AB8B76884 colorindex 9 xpos 785 ypos 45 D5973360-B453-4F19-BEC6-695832FF1756 colorindex 9 xpos 455 ypos 75 DE89967F-43E5-4EEC-8F93-059E5BA1FB96 xpos 35 ypos 260 E9A9E33F-4D94-4AF5-BC40-38C018B27927 xpos 885 ypos 565 userconfigurationconfig variablesdontexport version 3.3 webaddress https://github.com/alanhg/alfred-workflows/tree/master/ocr