Created
May 10, 2012 08:02
-
-
Save ff6347/2651812 to your computer and use it in GitHub Desktop.
builds 23 InDesign Documents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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++; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This Gist is part of MT4D coming soon on fabiantheblind.info