Skip to main content
Participating Frequently
January 29, 2014
Answered

InDesign CS6 plug-in not recognized correctly by InDesign

  • January 29, 2014
  • 3 replies
  • 1102 views

I have been trying to create a simple InDesign CS6 plug-in that writes to a log file as I'm opening & closing InDesign documents. SDK package had the LinkWatcher sample that I've been using as a reference when creating my solution.

Currently the problem is that I'm getting a "Adobe InDesign does not recognize mfindesign.pln as a valid plug-in" when I try to start up InDesign CS6 with the plugin. That isn't too helpful as it doesn't let me know where the problem is and compiling the code with VS2010 gives me no errors currently.

Relevant parts of the code can be found from https://github.com/crnd/MFIndesign/. I've been using CResponder as a base class in my implementation.

Anyone have any good pointers where & how to start looking for the problem? Or even better if someone can already spot the mistake(s) I've made...

This topic has been closed for replies.
Correct answer Bartek_Kropaczewski

I guess that is resource related problem. Check if you have (MFIndesign Resources) directory in plugins directory

Regards

Bartek

3 replies

Community Expert
January 31, 2014

This is a typical problem to solve, based on my individual experience on this issue i would recommend the following check points.

  1. Check that your plugin is linking to correct version of libraries.
  2. Check you are using the correct version of SDK
  3. Look for the odfrc command line and see that correct flags are being sent as argument to it. Also that the correct version of odfrc is being used to compile the resources
  4. If possible use the debug version of InDesign, it may give you more detailed error prompt. Like if the plugin you are trying to load is a release version, or the resources are missing.
  5. See if the resources are actually compiled and the resulting folder is placed parallel to your .pln file, like very truly mentioned by Bartek. Pay attention to what the name of this folder should be.
  6. Also makes sure that these resource folders are not empty.

Hope one of these steps does the trick for you.

-Manan

-Manan
Participating Frequently
January 30, 2014

Make sure you are using debug plug-in with InDesign debug (or release plug-in with InDesign release).

Bartek_Kropaczewski
Bartek_KropaczewskiCorrect answer
Inspiring
January 29, 2014

I guess that is resource related problem. Check if you have (MFIndesign Resources) directory in plugins directory

Regards

Bartek

Participating Frequently
January 29, 2014

You need a class DocumentServiceProvider derived from CServiceProvider.

In GetServiceIDs() you register kDuringNewDocSignalRespServiceImp and alike.

Your CDocumentWatcher() looks good on first glance.

In your *.fr file change the class definitions to somethings like:

Class {

    kMFInDesignNewDocResponderBoss,

    kInvalidClass,

    {

        IID_IRESPONDER, kCDocumentWatcherImpl,

        IID_IK2SERVICEPROVIDER, kDocumentServiceProviderImpl,

    }

}

Regards, Peter