Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- if ARGV.length < 2
- puts "Usage: #{$PROGRAM_NAME} <plist_file> <json_file>"
- exit 1
- end
- plist_file = ARGV[0]
- json_file = ARGV[1]
- require 'plist'
- require 'json'
- data = Plist::parse_xml(plist_file)
- IO.write(json_file, JSON.pretty_generate(data))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement