-
1. Re: How to suppress "not in the paragraph catalog"
saurabhatadobe Mar 8, 2012 11:46 PM (in response to JHowe99)Hi,
Please visit the following blog for information to suppress a particular FM alert:
Regards,
Saurabh
-
2. Re: How to suppress "not in the paragraph catalog"
Georg Eck Mar 9, 2012 12:15 AM (in response 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
-
3. Re: How to suppress "not in the paragraph catalog"
JHowe99 Mar 10, 2012 5:59 AM (in response to JHowe99)> Please visit the following blog for information to suppress a particular FM alert:
I saw that, but this message includes the paragraph name, and that posting says the message must match exactly. Perhaps framemaker 11 could accept "*" wildcards?
>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.
Can you point to one?
-
4. Re: How to suppress "not in the paragraph catalog"
saurabhatadobe Mar 10, 2012 8:52 PM (in response to JHowe99)Hi,
You can use regular expressions in ExtendScript to make it work for a particular pattern.
Regards,
Saurabh
-
5. Re: How to suppress "not in the paragraph catalog"
JHowe99 Mar 12, 2012 6:27 AM (in response to JHowe99)Thanks for sticking with me!
>You can use regular expressions in ExtendScript to make it work for a particular pattern.
That logically makes sense, however when I run the whole thing below as a script the callback is never activated. But, if I then manually File->Save As->HTML it works correctly. What am I missing?
alert("Loading script");
Notification(Constants.FA_Note_Alert,true); //Registering for the event FA_Note_Alert
saveHTML(app.ActiveDoc, "foobar.html");
function Notify(note,doc,sparm,iparm) {
switch (note) {
case Constants.FA_Note_Alert :
alert("notify callback "+sparm);
if (/Paragraph tag .* is not in the Paragraph Catalog.*/i.test(sparm)) {
ReturnValue(Constants.FR_YesOperation)
}
break;
}
}
function saveHTML(doc, filename) {
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();
Err("Saving HTML "+filename+"...\n");
doc.Save(filename, params, returnParamsp);
}
-
6. Re: How to suppress "not in the paragraph catalog"
saurabhatadobe Mar 12, 2012 6:36 AM (in response to JHowe99)Hi,
Do you see any errors in the FM console window?
Regards,
Saurabh
-
7. Re: How to suppress "not in the paragraph catalog"
JHowe99 Mar 13, 2012 5:53 AM (in response to JHowe99)The framemaker console has the print messages my script makes:
Saving HTML R:\....html...
The javascipt console in the debug window is empty.
I get the "loading script" alert, but not the "notify callback" alert.
After running the above, without reloading the script, the manual "Save As" works and I get the notify callback. So obviously it is being installed the first time, just not called. If I run the script a second time in the same session it still doesn't work, so it's not a matter of it being installed too late or something like that.


