This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| set -e | |
| while getopts 'h:o:i:s:t:' OPTION; do | |
| case "$OPTION" in | |
| h) | |
| highlighthome="$OPTARG" | |
| ;; | |
| o) | |
| outputrtf="$OPTARG" | |
| ;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on run {input, parameters} | |
| set highlightHome to "/opt/homebrew/bin/highlight" | |
| set syntaxType to "css" | |
| set themeName to "navy" | |
| set command to "PATH_TO_SCRIPT/keynote-highlight -h " & highlightHome & " -s " & syntaxType & " -t " & themeName | |
| do shell script "/bin/bash -c 'pbpaste | " & command & " | pbcopy'" | |
| delay 0.1 | |
| tell application "System Events" to keystroke "v" using command down | |
| end run |
OlderNewer