Method: HookApp#decode
- Defined in:
- lib/hook/hookapp.rb
#decode(string) ⇒ Object
566 567 568 569 570 571 572 573 |
# File 'lib/hook/hookapp.rb', line 566 def decode(string) result = `osascript <<'APPLESCRIPT' tell application "#{HOOK_APP}" percent decode "#{string.escape_quotes}" end tell APPLESCRIPT`.strip print result end |