Last active
December 6, 2020 03:06
-
-
Save sugarmo/5670656 to your computer and use it in GitHub Desktop.
A shell script for Automator that can convert JSON to .plist file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in "$@" | |
do | |
filename="${f%.*}" | |
plutil -convert xml1 "$filename".json -o "$filename".plist | |
done |
DUUUUDE. This is EXACTLY what I have been looking for. Hot damn I'm excited. I'm working on doing some serious customization of my Sublime theme/color scheme and the thought of writing a bunch of difficult-to-understand .plist
files is miserable. But then this.
I'm going to try and build in a way to support variables, but if I make it happen and I remember to update here, I'll post my solution.
You. Rock.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage
Run Shell Script
.Now, just choose a
.json
file in Finder, and pop up the context menu, chooseConvert to plist
(or other name you had just gave), then there would be a.plist
file.Hope this can help :)