Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 119881

Re: Flowed indd document not saved in same path

$
0
0

Hi,

 

Which OS in use?

 

Your "myWordFileName" includes a file extension, I am afraid.

try to modify last line (watch out slash vs backslash difference):

 

app.activeDocument.save(new File(myIndFilePath + " / " + myWordFileName.replace(".doc", ".indd") ) );     // is it ".doc" ???

 

There is a syntax error as well:

You can not use a document property to file (I mean "filePath")

so the lines (07-09) which are opening a doc should be moved up - before "myIndFilePath" creation.

and modify it to:

 

var myIndFilePath = mydoc.filePath;

 

Jarek


Viewing all articles
Browse latest Browse all 119881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>