1
0
mirror of https://github.com/drewcassidy/dotfiles synced 2024-06-11 05:44:06 +00:00
Dotfiles/Applescript
2018-02-27 17:12:08 -08:00
..
Services add screenshot management scripts 2018-02-27 16:35:31 -08:00
Copy last screenshot to clipboard.applescript add screenshot management scripts 2018-02-27 16:35:31 -08:00
Manage Screenshots.zip add screenshot management scripts 2018-02-27 16:35:31 -08:00
Notes Today.applescript update applescript and git config 2018-02-04 11:06:32 -08:00
OCR screenshots.zip add screenshot management scripts 2018-02-27 16:35:31 -08:00
README.md Update README.md 2018-02-27 17:12:08 -08:00

Applescript files

These are all various Applescript and Automator workflows that I use regularly. These were never designed to be shared so paths may not make any sense. Automator workflows are archived for use in git.

Screenshot Management scripts

Handle screenshot storage and manipulation

Manage screenshots

Compresses new screenshots and and places overflow into an archive folder. Should be attached as a folder action for where you place your screenshots (change with defaults write com.apple.screencapture /path/to/folder). Requires Zopfli to be installed, which can be done through Homebrew.

OCR screenshots

Uses Tesseract to OCR screenshots, and place the output text into the macOS comment field for indexing by Spotlight. Should be attached as a folder action to wherever you want new screenshots to be OCRed (like the output of the Manage Screenshots workflow). Requires the "Put OCR text in comment" service, and for Tesseract to be installed, which can be done through Homebrew.

Copy last screenshot to clipboard

Copies the last screenshot (most recent in your screenshots folder) to the clipboard. Can be bound to a shortcut using BetterTouchTool (I chose ⌘⌥V). You can also add a shortcut to a script using the Keyboard preferences pane, but then wont work in some applications.

Services

These appear in the right click menu for files in finder or text selection, depending on what they support

Put OCR text in comment

OCRs an image file and places the output text into the macOS comment field (viewable with ⌘I) to make them searchable through Spotlight. Needs the accompanying Bash script. Requires Tesseract to be installed, which can be done through Homebrew.