Skip to content

Instantly share code, notes, and snippets.

Avatar

Gabriël Konat Gohla

View GitHub Profile
@Gohla
Gohla / export.applescript
Last active Nov 9, 2015
Exports OmniGraffle canvasses to .eps and .pdf files for use in latex. Call with ./export.applescript file.graffle generated/
View export.applescript
#! /usr/bin/osascript
on replace_string(input, search, replacement)
set oldDelim to AppleScript's text item delimiters
set AppleScript's text item delimiters to search
set textItems to every text item of input
set AppleScript's text item delimiters to replacement
set res to textItems as string
set AppleScript's text item delimiters to oldDelim