4
4
Fork 0
This repository has been archived on 2025-01-20. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
json-photoshop-scripting/Utility-Scripts/Parse-Styles-File
2024-02-24 13:35:32 +01:00
..
Abstract Styles.json First commit 2018-04-15 16:41:40 +02:00
Parse Styles File.js First commit 2018-04-15 16:41:40 +02:00
README.md Fixed relative links in README.md files 2024-02-24 13:35:32 +01:00

Parse Styles File

Description

“Parse Styles File” is a layer styles utility script using the JSON Action Manager scripting library, and more specifically its module jamStyles.

This stand-alone script written in JavaScript is used to parse a Photoshop styles file (.asl) or a styles palette (Styles.psp) into a JSON text file. It provides basic information about the embedded patterns associated with the set of styles, and makes use of the following simplified formats:

From a technical point of view, it shows how to take advantage of the method ActionDescriptor.fromStream to decode flattened (serialized) versions of ActionDescriptor objects saved in a file.

Example

Parsed styles file (Abstract Styles.asl):

Abstract Styles.json

Requirements

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

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

License

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

Download

Download Zip File

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.