Skip to content

Instantly share code, notes, and snippets.

View zwettemaan's full-sized avatar

Kris Coppieters zwettemaan

View GitHub Profile
@zwettemaan
zwettemaan / callOnIdle.jsx
Last active May 1, 2018 15:05
Provides an easy-to-use function for delayed execution of InDesign scripts
//
// callOnIdle.jsx
//
// Script for InDesign ExtendScript
//
// (c) 2018 Rorohiko Ltd.
//
// by Kris Coppieters, kris@rorohiko.com
//
// See bottom of script for licensing info
@zwettemaan
zwettemaan / sampleCallOnIdle.jsx
Last active May 1, 2018 15:05
Using the callOnIdle feature
// License info at the end of script
// This MUST be run in a persistent engine, so
// using a #targetengine is crucial
#targetengine SomePersistentEngine
// Pull in the helper code. You must store the 'callOnIdle.jsx'
// script file beside your own .jsx file
@zwettemaan
zwettemaan / crashInDesign.jsx
Last active April 25, 2018 22:29
Script that shows how InDesign events need to be handled with special care to avoid hard InDesign crashes.
//
// Before running this script, close all documents and save your work
//
// Then create a new document, and put in an empty text frame
//
// Save the new document to the desktop or so
//
// Then run this script - InDesign will crash.
//

Keybase proof

I hereby claim:

  • I am zwettemaan on github.
  • I am zwettemaan (https://keybase.io/zwettemaan) on keybase.
  • I have a public key ASCCVOgANBLYLiNrW5PP4BKr4gEjtGUxjM-Jqgsf51SW9go

To claim this, I am signing this object: