Skip to content

Instantly share code, notes, and snippets.

@johntaufa
Created January 14, 2014 04:08
Show Gist options
  • Save johntaufa/8412890 to your computer and use it in GitHub Desktop.
Save johntaufa/8412890 to your computer and use it in GitHub Desktop.
For Indesign CS4. Import a Word file into a text frame
#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