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)

AppleScript — Excel and AppleScript

Array

Assignment

Background tasks

BridgeTalk

Bugs (see also non-scripting bugs)

bat-files (executing with/without the arguments)

CEP Extensions

Clipboard

Color & swatch

Command line — passing arguments to the jsx file from command line

Conditional text — How to apply unconditional to conditional text

Convert an image file to Base64

Damaged documents (apps, scripts and tips for recovering)

Dictionary

doScript

dll — an example of creating external library

evaluateXPathExpression vs XML-rules: which is better?

everyItem().getElements()

Excel — How to get data directly from Excel

Excel and AppleScript

ExtendScript Toolkit (ESTK)

External library — an example of creating dll file

File - Folder

Font

Frame — can contain more than one object at a time

Function — How to find function name from inside of itself

Glue code loading

GREP

Hyphen

#include, #includepath (load library)

Kerning

Label

Locale independent strings

Measurement Units

Menu item

Microsoft Visual C++

Object hierarchy

Override

Overset text

Page numbers — How to make page numbers appear in the column?

Plug-in

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

Sorting

Table

Text frame

Transforming page items

Unavailable to scripting features in InDesign

Varnish — add varnish script

Version of an InDesign file

Versions of InDesign application

Visual Basic

Web

While Loop — While Loop with Array.pop() Gotcha

Xcode — How to debug Indesign plugin source code in Xcode?

XML