Skip to content

Instantly share code, notes, and snippets.

@rraallvv
Forked from sugarmo/json-to-plist.sh
Created February 25, 2016 19:14
Show Gist options
  • Save rraallvv/119907f7ec88b887cc1c to your computer and use it in GitHub Desktop.
Save rraallvv/119907f7ec88b887cc1c to your computer and use it in GitHub Desktop.
A shell script for Automator that can convert JSON to .plist file.
for f in "$@"
do
filename="${f%.*}"
plutil -convert xml1 "$filename".json -o "$filename".plist
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment