lib/scrivstats/scriven.rb
# Answer a wordcount of an RTF file within the Scrivener project
Answer a wordcount of an RTF file within the Scrivener project
Answer a wordcount of an RTF file within the Scrivener project
def word_count(filename)
      path = abs_docs_path + filename
      wc = `textutil -stdout -convert txt #{path} | wc -w`
      wc.chomp.to_i
    end
def word_count ( filename ) path = abs_docs_path + filename wc = ` textutil -stdout -convert txt  #{ path }  | wc -w ` wc . chomp . to_i end
Answer a wordcount of an RTF file within the Scrivener project
Answer a wordcount of an RTF file within the Scrivener project
filename