ScriptUI is a module in the Adobe CS family (from CS2 in PhotoShop, CS3 for InDesign) with which dialogs can be added to scripts written in JavaScript. The module is included in the ExtendScript Toolkit, and dialogs written in it can be used in scripts targeted at all CS applications. Though this guide deals mainly with InDesign as a target application, virtually everything covered here applies to scripts written for the other CS apps as well. This guide is for ScriptUI only: it assumes that you are more or less proficient in JavaScript.
To my knowledge, the only documentation available on ScriptUI is a chapter in the file JavaScript Tools Guide CSn.pdf (where n stands for a CS version), which is included with every version of the ESTK and can be found in the Help menu (in CS3, look in the SDK submenu of the Help menu). That chapter is a complete reference for the ScriptUI environment, but it is a bit short on examples here and there. The present guide does not repeat the full reference; rather, it should be seen as a companion to it.
Please do not post this guide on library sites such as scribd.com or anywhere else on the web. The guide is updated from time to time, so you're doing no-one any favours by causing the continued existence of out-of-date guides.
Consider making a donation. To make a donation, please press the button below. This is Paypal's payment system; you don't need a Paypal account to use it: you can use several types/brands of credit and debit card.
2.0 (September 2012)
1.0 First posted 12 Oct. 2010.
Questions, comments? Get in touch