Skip to content

Instantly share code, notes, and snippets.

View unforswearing's full-sized avatar

Alvin Charity unforswearing

View GitHub Profile
@unforswearing
unforswearing / wrap-automator.sh
Last active March 11, 2016 03:39
an automator script to wrap punctuation around text
which_wrap() {
# this script is much faster than the applescript version, but does not properly handle cancellation
osascript <<EOF
try
set bloog to (choose from list {"double-quote \"\"", "single-quote ''", "parenthesis ()", "curly-brace {}", "brace []", "angled-bracket <>"} with title "Select an Item" OK button name "Wrap" default items {"double-quote"} with empty selection allowed)
return bloog