Skip to content

Instantly share code, notes, and snippets.

@archgrove
archgrove / OGExportAllForLaTeX.scpt
Created May 10, 2012 15:09
Omnigraffle "Export all Canvases for LaTeX"
# Replace "search" with "replacement" in "input" (all text)
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
return res