Created
January 14, 2014 04:08
-
-
Save johntaufa/8412890 to your computer and use it in GitHub Desktop.
For Indesign CS4. Import a Word file into a text frame
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
#target indesign | |
app.documents.add(); | |
app.documents[0].save(); | |
app.documents[0].pages[0].textFrames.add({geometricBounds:[40,40,180,180]}); | |
var wordFile = File.openDialog ("Choose a text file", "*.doc"); | |
var myFrame = app.documents[0].pages[0].textFrames[0]; | |
myFrame.insertionPoints.item(-1).place(wordFile); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment