Convert AM Code to JSON

Description

“Convert AM Code to JSON” is a code utility script using the JSON Action Manager scripting library.

This stand-alone script written in JavaScript opens a resizeable dialog box with two text areas; in the first field, copy any Action Manager code obtained from the ScriptingListenerJS.log file, then click the Convert button to get it translated into executable JSON Action Manager calls in the second field. Basic editing support is provided, i.e., tabulations and new lines can be inserted.

Convert AM Code to JSON Dialog (Mac OS X)

Requirements

This script can be used in Adobe Photoshop CS4 or later. It has been successfully tested in CS4 on Mac OS X, but should be platform agnostic.

Copyright

This Software is copyright © 2011-2015 by Michel MARIANI.

License

This Software is licensed under the GNU General Public License (GPL) v3.

Download

Installation

Download the Zip file and unzip it.

Move the script to the Presets/Scripts folder in the default preset location of the Adobe Photoshop application. On next launch, the script will appear in the File>Automate submenu.

Version History

  • 4.1

    • Used new version 4.4.4 of jamEngine scripting library module.
  • 4.0

    • Used new version 4.4.1 of scripting library modules.
  • 3.9

    • Used new version 4.0 of scripting library modules.
  • 3.8

    • Used new version of jamEngine module.
  • 3.7

    • Used new version of scripting library modules.
  • 3.6

    • Used new version of jamEngine (updated disambiguating rules table for CS6).
    • Used new version of scripting library modules.
  • 3.5

    • Used jamUtils.writeTextFile () and jamUtils.readTextFile () in replacement of custom code.
  • 3.4

    • Added ‘TEXT’ Mac OS type to newly created text files.
  • 3.3

    • Modified the order of options in dialog box.
    • Used new version of scripting library modules.
  • 3.2

    • Incremented version number to keep in sync with scripting library modules.
  • 3.1

    • Incremented version number to keep in sync with scripting library modules.
  • 3.0

    • Applied the redefined JSON AM Reference format.
  • 2.0

    • Simplified About string in resource header.
    • Added Clear button in dialog.
    • Improved the availability of monospaced fonts
    • Used more parse-friendly JSON compact format.
    • Handled jamEngine global options.
    • Renamed script “Convert AM to JSON” to “Convert AM Code to JSON”.
    • Made stand-alone (using inline minified headers).
  • 1.0

    • Initial release.

Tags: , , ,

Comments are closed.