Site logo

Miscellaneous scripting tips & tricks

Here I am going to collect some interesting stuff (sorted by alphabet) I find on scripting forums.

Alphabetical Sort in JavaScript (and InDesign)

Array

Assignment

Background tasks

BridgeTalk

Bugs

bat-files (executing with/without the arguments)

Clipboard

Color & swatch

Convert an image file to Base64

Damaged documents (apps, scripts and tips for recovering)

doScript

evaluateXPathExpression vs XML-rules: which is better?

everyItem().getElements()

Excel — How to get data directly from Excel

ExtendScript Toolkit (ESTK)

File - Folder

Font

Frame — can contain more than one object at a time

Glue code loading

GREP

Hyphen

#include, #includepath (load library)

Kerning

Locale independent strings

Measurement Units

Menu item

Object hierarchy

Polygon — How to calculate the total coverage of an irregular polygon shape in InDesign

Python

Script UI

Shell scripts (running from JS)

Smart Text Reflow

Socket

Table

Text frame

Transforming page items

Version of an InDesign file

Versions of InDesign application

Visual Basic

Web

XML