This library is under active development.
For more information go to our website extendscript-library.org!
//if you use photoshop lib -> add the target photoshop
//you can use the @include syntax to use extendscript in an other IDE without error
//@target "photoshop"
//@include "../../../../../../lib/photoshop/photoshop-lib.jsx"
install node modules:
// install node modules for the documentation
cd your_extendscript-library.org_directory
sudo npm install
// install node modules for the tests
cd your_extendscript-library.org_directory/tests
sudo npm install
Use jsdoc3 to generate the documentation
cd your_extendscript-library.org_directory
./node_modules/.bin/jsdoc lib/* -c conf.json documentation/doc.md -d documentation/html_doc
Create a config.js file under your_extendscript-library.org_directory/tests/config.js. You can use the exemple.config.js file, just change the name to config.js. Use grunt to run units tests. Make sure that you have the Creative Suite CC installed. Otherwise you can change the config file:
var config = {};
config.app = {};
config.app.photoshop = 'Adobe Photoshop CS6'; // Adobe Photoshop CC 2014
config.app.indesign = 'Adobe InDesign CS6'; // Adobe InDesign CC 2014
config.app.illustrator = 'Adobe Illustrator CS6'; // Adobe Illustrator CC 2014
module.exports = config;
Create a config.js file under your_extendscript-library.org_directory/tests/config.js. You can use the exemple.config.js file, just change the name to config.js.
cd your_extendscript-library.org_directory/tests
grunt --verbose
To write your own tests follow this section
If you don't like to use the ExtendScript Toolkit to write your scripts, you can use the excellent WebStorm IDE. If you will participate in this project you can write to me an email to receive a free open-source licence. First download WebStorm IDE here
If you would like to add the autocompletion in WebStorm you can follow this projet. Download precompiled libraries and setup WebStorm by the way described in the section "Documentation and autocomplete in IDEs"