Placing word to INDD template under Subfolders in the Same folder
dear amazing scripters,
i working on case, each folder contains 2 folders, 1 word file , 1 indesign template.
i have done research , have got indesign files subfolders,
and want use parent of absoluteuri of the indesign files found
to folder of word document, place in indesign file under same parent folder.
but when tried there error message "invalid value parameter “filename” of method “place”. expected file, received ~/desktop/.../mywordfolder/myword1.docx"
below part of code,
myworddocspath = myfiles[i].parent.parent.absoluteuri + /mywordfolder/;
myworddocs = folder(myworddocspath).getfiles("*docx");
mytextframe[0].insertionpoints[-1].place(myworddocs);
what guessing code above got file path or filename instead of file itself.
but can't think of way file instead of path or filename.
or there better way this?
thanks ideas or inputs....
myworddocs array of file objects. use . . .place(myworddocs[0]) (if there's 1 file in array).
also, line:
myworddocspath = myfiles[i].parent.parent.absoluteuri + /mywordfolder/;
looks strange. slashes should in quotes. how got third line of code don't know.
peter
More discussions in InDesign Scripting
adobe
Comments
Post a Comment