Skip to content

Instantly share code, notes, and snippets.

@kurain
Created November 28, 2012 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurain/4161525 to your computer and use it in GitHub Desktop.
Save kurain/4161525 to your computer and use it in GitHub Desktop.
doRuby Service
on run {input, parameters}
set output to do shell script "echo " & quoted form of (input as Unicode text) & " | ruby -Ku"
if output is "" then
display dialog "No output"
end if
return output
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment