<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -7,7 +7,8 @@
 require &quot;#{ENV['TM_BUNDLE_SUPPORT']}/lib/copy_as_rtf.rb&quot;
 require &quot;#{ENV['TM_SUPPORT_PATH']}/lib/progress.rb&quot;
 doc = RtfExporter.new.generate_rtf( STDIN.read )
-Kernel.open('|pbcopy','w+') do |f|
+`echo &quot;hi&quot; | pbcopy`
+Kernel.open('|pbcopy','w') do |f|
   f.write(doc)
 end
 print doc</diff>
      <filename>Commands/Copy as RTF.tmCommand</filename>
    </modified>
    <modified>
      <diff>@@ -66,7 +66,7 @@ class RtfExporter
     # Load the active theme. Unfortunately, this requires us to scan through
     # all discoverable theme files...
     unless theme_plist = find_theme(theme_uuid)
-      print &quot;Could not locate your theme file!&quot;
+      print &quot;Could not locate your theme file or it may be corrupt or unparsable!&quot;
       abort
     end
 
@@ -149,8 +149,12 @@ RTF_DOC
       if File.exists? theme_dir
         themes = Dir.entries(theme_dir).find_all { |theme| theme =~ /.+\.(tmTheme|plist)$/ }
         themes.each do |theme|
-          plist = OSX::PropertyList.load(File.open(&quot;#{theme_dir}/#{theme}&quot;))
-          return plist if plist[&quot;uuid&quot;] == uuid
+          begin
+            plist = OSX::PropertyList.load(File.open(&quot;#{theme_dir}/#{theme}&quot;))
+            return plist if plist[&quot;uuid&quot;] == uuid
+          rescue OSX::PropertyListError =&gt; e
+            # puts &quot;Error parsing theme #{theme_dir}/#{theme}&quot; - e.g. GitHub.tmTheme has issues
+          end
         end
       end
     end</diff>
      <filename>Support/lib/copy_as_rtf.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>52638c9884b4b377ae3dbce1bb12c83e4a8a0f57</id>
    </parent>
  </parents>
  <author>
    <name>Dr Nic Williams</name>
    <email>drnicwilliams@gmail.com</email>
  </author>
  <url>http://github.com/drnic/copy-as-rtf-tmbundle/commit/e490dbf7fea6caf443b22860b924f64d21bd2359</url>
  <id>e490dbf7fea6caf443b22860b924f64d21bd2359</id>
  <committed-date>2009-04-30T22:17:43-07:00</committed-date>
  <authored-date>2009-04-30T22:17:43-07:00</authored-date>
  <message>ignore corrupt/unparsable tmThemes such as GitHub.tmTheme</message>
  <tree>1be6b0dd105099f81d0933ac5d3e979a0508707e</tree>
  <committer>
    <name>Dr Nic Williams</name>
    <email>drnicwilliams@gmail.com</email>
  </committer>
</commit>
