Author: Not specified Language: c
Description: Not specified Timestamp: 2017-07-05 12:55:28 +0000
View raw paste Reply
  1. try
  2.         set old to the clipboard as record
  3. end try
  4. tell application "System Events" to keystroke "c" using command down
  5. do shell script "export LC_CTYPE=UTF-8; pbpaste | /usr/local/bin/pygmentize -l c -f rtf -O style=default | pbcopy -Prefer rtf"
  6. tell application "System Events" to keystroke "v" using command down
  7. delay 0.05
  8. try
  9.         set the clipboard to old
  10. end try
View raw paste Reply