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

Framescript: search and replace condition name in a bunch of mif files

$
0
0

Hello fellows,

 

I would like to loop through all mif files listed in a book, and search/replace specific condition names with other ones.

This can be done in each FM file as follows:

...

Sub ProcessDoc

  Loop ForEach(CondFmt) In(vCurrentDoc) LoopVar(vCondFmt)

    If vCondFmt.Name = (vCurrentName)

      Set vCondFmt.Name = (vFutureName);

    EndIf

  EndLoop

EndSub

...

 

The question is what would be the code in case of mif files. Conditions are defined in mif files as follows:

 

<Conditional

    <InCondition `SampleCond'>

    <InCondition `SampleCond'>

   > # end of Conditional

 

Thank you for your input in advance!


Viewing all articles
Browse latest Browse all 3715

Trending Articles



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