Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 18 lines (14 sloc) 309 Bytes
#!/usr/bin/env ruby
require 'osx/cocoa'
ARGV.each do |a|
a = File.expand_path(a)
d = OSX::NSDictionary.dictionaryWithContentsOfFile a
if not d
$stderr.puts "Could not deplistify #{a}."
next
end
s = d.descriptionInStringsFileFormat.to_s
File.open(a, "w") do |io|
io << s
end
end