Skip to main content
Participating Frequently
May 10, 2018
Answered

change the content of a user variable across a book

  • May 10, 2018
  • 1 reply
  • 756 views

Hi there!

I have a book with several files and want to change the content of a user variable across all of them.

I read some ways to do that in this forum but none of these work for me:

- Doing a MIF snippet doesn't work because I'm using FM 2017 and when I load the MIF, FM automatically adds all the system stuff.

- Importing variables from other file is the same case: it imports all variables (system & user)

- I found FrameMaker Super Find / Change Reloaded script but it only change the first ocurrence of the variable in each file. I don't know why.

Is there any way to do this task?

Thanks a lot for your time

    This topic has been closed for replies.
    Correct answer Arnis Gubins

    How are you "loading" the MIF snippet? Importing by copy a true snippet (i.e. only the desired variables and nothing else) just adds those variables to the FM file.

    There's also Scott Prentice's BookVars plug-in. See: http://leximation.com/tools/info/bookvars.php

    1 reply

    Arnis Gubins
    Arnis GubinsCorrect answer
    Inspiring
    May 10, 2018

    How are you "loading" the MIF snippet? Importing by copy a true snippet (i.e. only the desired variables and nothing else) just adds those variables to the FM file.

    There's also Scott Prentice's BookVars plug-in. See: http://leximation.com/tools/info/bookvars.php

    Jeff_Coatsworth
    Community Expert
    Community Expert
    May 10, 2018

    Here's the MIF snippet instructions off the Free Framers list (thanks Richard G. Combs):

    This is how you do it:

    1. Create a MIF snippet (don't worry, you'll find an example of the

    "code" at the end of this procedure).

    2. Open the MIF snippet in a text editor and change the variable name or

    the variable definition.

    3. Open the MIF snippet in FM and import its variable definitions (only

    one) into the other FM files.

    This is an example of a MIF snippet. You can copy this, paste it in a

    text editor and change the variable definition and name.

    <MIFFile 7.00> # Generated by FrameMaker 7.0p578

    <VariableFormats

    <VariableFormat

    <VariableName `1-productname01'>

    <VariableDef `<Default \xa6  Font\>Adobe FrameMaker<Default \xa6

    Font\>'>

    > # end of VariableFormat
    > # end of VariableFormats
    # End of MIFFile

    Participating Frequently
    May 11, 2018

    Thanks a lot Jeff, it works!

    this forum is making my life easier!!