beforeRunningCommand nop command #!/usr/bin/env ruby -KA -rcgi src = CGI.escape(STDIN.read) src = src.gsub('+', '%20') src = 'applescript://com.apple.scripteditor?action=new&script=' + src open('|pbcopy', 'w') { |io| io.write src } print "The URL encoded AppleScript was copied to the clipboard" fallbackInput document input selection keyEquivalent ^@C name Copy URL Encoded Script output showAsTooltip scope source.applescript uuid 565860C4-A665-4C64-81B0-CA7848B181A2