Quantcast
Channel: Adobe Community: Message List - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 3715

Re: Is there a JS Script that could batch fm2mif and mif2fm?

$
0
0

Hi Jang

Thank you for reply on forum.

I replied on it and would like to try your script.

And for Fm2mif part, I searched all the discussions and extracted the following scripts which could make it.

I don't understand the references of scripting in FrameMaker very well, they look different from InDesign.

 

MyDoc=app.FirstOpenDoc;

while (MyDoc.ObjectValid() === 1) {

    name = MyDoc.Name;

    fullName = name.replace(".mif",".fm");

    var params = GetSaveDefaultParams()

    var returnParamsp =new PropVals()

    var i = GetPropIndex(params, Constants.FV_SaveAsNameProvided)

    params[i].propVal.ival =Constants.FV_SaveNoAutoBackup

    MyDoc.Save(fullName, params, returnParamsp)

    MyDoc = MyDoc.NextOpenDocInSession;

}

CloseAll();

....

   ,_

  >' )

  ( ( \

   ''|\

Linus Wang


Viewing all articles
Browse latest Browse all 3715

Trending Articles



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