Skip to content

Instantly share code, notes, and snippets.

@TyounanMOTI
Created December 4, 2010 14:26
Show Gist options
  • Save TyounanMOTI/728213 to your computer and use it in GitHub Desktop.
Save TyounanMOTI/728213 to your computer and use it in GitHub Desktop.
rstrip and save script for Xcode
#!/usr/bin/ruby
require 'appscript'
output = String.new
$stdin.each_line do |line|
output << line.rstrip! + $/
end
document = Appscript.app('Xcode').text_documents.first
document.contents.set output
document.save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment