How to make a Plugin, without opening indesign Adobe

Hello

Anyone know how to run a plugin as a service or something like that...

What I want to do is.

I wrote a plugin that can read texts of indd files & save as .txt files.

now, I want to put indd files in a folder and once a new file comes to the folder, read this new file automatically and save as txt.

to do this, I want to run the plugin without having to open the indd file.

I hope that the support of CS6 SDK to do this.

Please let me know if anyone has an idea...

Thank you.

It seems to me that you can do what you need with an IdleTask. To use an IdleTask in your plug-in, you must implement a class based on CIdleTask.

Starting an IdleTask it will be called periodically, depending on the settings of the task. You can start your plugin IdleTask running when InDesign is launched. In your case, I guess the IdleTask would check to see if there are files to process in a particular folder.

You can find examples of implementation of an IdleTask in couple of sample plug-ins Adobe including the SDK SDK: CustomDataLink and PanelTreeView (there may be others).

The CustomDataLink plug-in starts his IdleTask in CusDtLnkStartupShutdown::Startup() and stop him in CusDtLnkStartupShutdown::Shutdown() in CusDtLnkStartupShutdown.cpp. The RunTask() method (which does work) is defined in CusDtLnkLinkResourceStateUpdaterIdleTask.cpp.

PanelTreeView implements its IdleTask similar to the plugin CustomDataLink way done, then you will want to check as well as the sample.

I hope this helps!

-Jim

Tags: InDesign

Similar Questions

Maybe you are looking for

  • Open Hotmail in Firefox close Firefox and open IE

    Today when I tried to open Hotmail in Firefox 12, closed Firefox and IE opens. I tried several times and the same thing happens. I noticed that my homepage had changed to Ask.com as well - not sure if this is a coincidence or related.

  • Satellite A660 - 11 M - drive HARD recovery is not possible

    Hello. I bought the satellite A660 - 11 M two months ago. A week before, he started to cause a problem that when turned on, boot HARD drive is not possible in the first place and boot priority option page is shown. Only after that I have reset a star

  • Satellite M305D make "beep" and no longer restart itself

    My brand-new Satellite M305D (1 week) is continuely do beep low battery, even if it is plugged into a socket a/c. In addition, after the installation of programs and having to restart, the screen turns off but the laptop never really turns off and I

  • Lens EF - S v Lens EF - Crop Factor (factor of Conversion of Image)

    Good evening Please excuse me if this is a stupid question. If I use a lens EF-S on a camera with an APS - C sensor, the sensor capture is all that I see in the viewfinder, i, e, with a ratio of 1:1? In other words; the EF-S-objectives overcome the f

  • Flash Adobe 11.4 x 32 drive does not work.

    I have Windows XP Home Edition 2002 SP3 and it wouldn't will come after I have download and click on "run". No idea if my version of xp is 32-bit or not, but it says that its required for the program. Should wat I do?