Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: How Save File using script ?

$
0
0

Bill joy wrote:

 

..

Is it Script proble or InDesign problem

or

MAC OSX problem ?

....

 

Hi Bill,

 

I think it is your path problem. (Are you able to save this file in UI there?)

 

Check:

mFile = new File("/var/New.indd");
mFile.isValid;

You can't go forward until above == true;

 

You could check how your system records a path using this in ESTK:

mFile = File.saveDialog();

 

select any file and check ESTK console.

Script is creating a new File object with path you can see (not saving anything), so do it same way.

 

If you will pass above with true save a doc using:

mDoc.save(mFile);

 

Jarek


Viewing all articles
Browse latest Browse all 37788

Trending Articles