ExtendScript of the Week : Suppressing a specific FM Alert

Thursday, February 16 2012 @ 9:08 AM, By Vikash Kumar

Continuing with the  “Extend Script of the Week”  postings, now  we will showcase an extend script which suppresses a specific FM alert which is specified by the user. The script prompts the user to enter the alert string displayed by FM Alert dialog in a text box and then subsequently suppresses the alert when it occurs.

Information about the Script :

      • ZIP file  contains the script .
      • The script works on the basis of FM notifications.
      • For illustrating ,we will take the example of an alert “Finished reading the structured application definitions.” which comes after reading  “structapps.fm”.


How to use the Script?

      • Launch FrameMaker
      • Execute the script and it will prompt for an alert string to be entered.For ex, enter the string “Finished reading the structured application definitions.” Please make sure that the string entered has to be exactly same as the string which appears in the FM alert dialog.
      • After this as you can notice, it will get registered. You can verify this by going to File->Script->Catalog and select the <registered> radio button.
      • Now open the default “structapps.fm” file by going to “Structure Tools->Edit Application Definitions”
      • Click on “Read Application Definitions”
      • The alert which normally comes will not come this time. Even after restarting FM, the alert will keep on getting suppressed.
      • For getting the alert again, go to File->Script->catalog and unregister the script by selecting it and the clicking on <Unregister> button.

I hope this will prove useful to many folks and you can add extra functionality as per your requirements to this script  to make it even more powerful.

Vikash Kumar
FrameMaker Engineering Team

  • Categories

  • Archives

  • Authors

  • Useful Links

  • Recent Comments

    • Dieter Gust: So I found it out myself: C:\Program Files (x86)\Adobe\AdobeFrameMaker201 5\fminit\ditafm\DITA-OT\doc...
    • Dieter Gust: In the DITA-OT 2.1 version a rudimentary HTML5 output is included. Add the following entries in...
    • Dieter Gust: Which fonts do you recommend for Thai and Farsi? As far as I can see special Adobe fonts for these...
    • Bjørn Smalbro: Hi Welcome aboard to the new folks! I do have a couple of questions; 1: I have every sent in my...
    • Dieter Gust: Kapil How can I check the DITA-OT version which is installed with FrameMaker?