Skip to main content

ExtendScript

ExtendScript is a dialect of JavaScript used in Photoshop and InDesign scripts.

Each standalone release script is available at https://cdn.sheetjs.com/.

xlsx.extendscript.js is a special ExtendScript-compatible build. The script is carefully assembled to work around ExtendScript quirks. Due to bugs in various JavaScript minifiers and tools, scripts cannot be compressed or post-processed.

https://cdn.sheetjs.com/xlsx-0.20.3/package/dist/xlsx.extendscript.js is the URL for 0.20.3

After downloading the script, it can be directly referenced with #include:

#include "xlsx.extendscript.js"

Watch the repo or subscribe to the RSS feed to be notified when new versions are released!

For local deployments, the scripts can be placed in the Scripts folder. The path is application-specific.

AppLocation
Photoshop\Presets\Scripts within the Application folder
InDesignWindows > Utilities > Scripts, click ☰ > "Reveal in Explorer"
CEP and UXP usage

The ExtendScript build should be used when performing spreadsheet operations from the host context (within a jsx script file).

CEP: The standalone scripts should be added to CEP extension HTML.

UXP: The standalone scripts can be loaded directly in UXP scripts using the require function.