This project is currently very much a work in progress. Check it out to get ideas, but be warned some of the functions are incomplete or unfinished and very much undocumented.
You can review samples/tests.jsx for some example of using the tools provided in Shoppe.js
1. Include the library in the beginning of any new scripts you're writing
2. Start using the helper functions in your code
sjs.doc.resizeLongest(800); // resize document so longest side is 800 pixels
Shoppe is comprised of a few collections of methods to make it easy to learn and use.
sjs.app.*: application related methods
sjs.doc.*: document related methods including creation and testing of properties
sjs.color.*: color related methods including sampling
sjs.random.*: convenience methods for generating random numbers or colors
sjs.text.*: text layer related methods
sjs.layer.*: general and art layer methods
sjs.meta.*: metadata and exit related methods
sjs.history.*: history related methods
Math.random() with Photoshop related features such as random color creation, and
sjs.doc makes working with the
app.documents array or
app.activeDocument much easier.