Skip to content

Instantly share code, notes, and snippets.

@ff6347
Created May 10, 2012 08:02
Show Gist options
  • Save ff6347/2651812 to your computer and use it in GitHub Desktop.
Save ff6347/2651812 to your computer and use it in GitHub Desktop.
builds 23 InDesign Documents
// createDocuments.jsx
var counter = 0;
var numberOfDocuments = 22;
while(counter <= numberOfDocuments){
app.documents.add({
documentPreferences:{
pageWidth:100,pageHeight:100
}
});
var tf = app.activeDocument.pages.item(0).textFrames.add({
geometricBounds:[10,10,90,90],
contents:String(counter) + "Hello World"
});
tf.characters.everyItem().properties = {
pointSize:42
};
counter++;
}
@ff6347
Copy link
Author

ff6347 commented May 11, 2012

This Gist is part of MT4D coming soon on fabiantheblind.info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment