Copy contents of JSON file to a PLIST file (or vice versa)

PLIST ⇄ JSON translation.

Creates one or more new PLIST or JSON files with the same contents as any (Finder-selected) JSON or PLIST files.

  • Given a Finder selection of one or more .json files, it creates corresponding .plist files in the same folder as the selection,
  • similarly, given a Finder selection of one or more .plist files, it creates corresponding .json files.

A group consisting of a single main macro (⌘⌥J by default), and a couple of sub-macros which it calls.

May be useful if, for example, if you need to create a plist file, but find json more legible and easier to edit.

i.e. it aims to allow for fairly painless json ⇄ plist ⇄ json workflows.

I am using it to adjust plist files for Keyboard Maestro custom plugins, by creating and working on JSON copies of their content, and then translating back to the required PLIST format.

PLIST ⇄ JSON Macros.kmmacros (84.1 KB)

It detects the extensions of the selected files, proceeding if they are all of one (appropriate) type, and otherwise giving an explanatory message.

2 Likes