Skip navigation
JHowe99
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.

 

Thanks

 

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);

}

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

    Hi,

     

    Please visit the following blog for information to suppress a particular FM alert:

    http://blogs.adobe.com/techcomm/2012/02/extendscript-of-the-week-suppr essing-a-specific-fm-alert.html

     

    Regards,

    Saurabh

     
    |
    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

    Hi,

     

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

     

    Regards,

    Saurabh

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

    Hi,

     

    Do you see any errors in the FM console window?

     

    Regards,

    Saurabh

     
    |
    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