Hi @Ariel, thanks. Since we use the script with the Data Merge function of InDesign (Data Merge -> Create Merged Document) it always runs for the first time because it is a new document that is being created. Is there any way to work around this? I see the script is a jsxbin which can't be edited, which I totally understand.