Skip navigation
Currently Being Moderated

How to suppress "not in the paragraph catalog"

Mar 7, 2012 11:43 AM

Tags: #framemaker10 #extendscript

I have a script to generate HTML below. This works, however some documents create the "Paragraph tag ... is not in the Paragraph Catalog" dialog.  I need the script to not require any input, so how can this be suppressed, or push all items into the catalog before saving? 


Also I haven't seen it yet, but suspect similar issues could occur with tables and characters not in the catalog.


Alternatively, something that can intercept dialogs and hit "ok" would work.




function saveCsrHTML(doc, suffix) {

    var saveDirname = doc.Name.substr(0, doc.Name.lastIndexOf("\\"));

    var saveBasename = basename(doc.Name);


    var params = GetSaveDefaultParams();


    var i = GetPropIndex(params, Constants.FS_FileType);

    params[i].propVal.ival = Constants.FV_SaveFmtFilter;


    var i = GetPropIndex(params, Constants.FS_SaveFileTypeHint);

    params[i].propVal.sval ="0001ADBEHTML";


    var i = GetPropIndex (params, Constants.FS_SaveMode);

    params[i].propVal.ival  = Constants.FV_ModeSaveAs;


    var i = GetPropIndex (params, Constants.FS_RetainNameStripe);

    params[i].propVal.ival  = 0;


    var i = GetPropIndex(params, Constants.FS_AlertUserAboutFailure);

    params[i].propVal.ival = false;


    var returnParamsp = new PropVals();

    var filename = saveDirname + "\\" + saveBasename + suffix + ".html";

    doc.Save(filename, params, returnParamsp);


  • Currently Being Moderated
    Mar 8, 2012 11:46 PM   in reply to JHowe99



    Please visit the following blog for information to suppress a particular FM alert: essing-a-specific-fm-alert.html




    Mark as:
  • Currently Being Moderated
    Mar 9, 2012 12:15 AM   in reply to JHowe99

    There are tools (Plug-ins and ExtendScripts) for FrameMaker 5 - 10 available to delete unused, all ... (free)
    and rename formats (e.g. not in Catalog) to other.


    - Georg

    Mark as:
  • Currently Being Moderated
    Mar 10, 2012 8:52 PM   in reply to JHowe99



    You can use regular expressions in ExtendScript to make it work for a particular pattern.




    Mark as:
  • Currently Being Moderated
    Mar 12, 2012 6:36 AM   in reply to JHowe99



    Do you see any errors in the FM console window?




    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points