Copy link to clipboard
Copied
Hi all.
I was following the guides given by the SDK CS5.5 and I tried to set it up but I couldnt. It just doesnt work.
So, I hope you guys could help me by setting up a sample using these services.
I was wondering something like showing a MessageBox when InDesign is loading itself (cause that's when the services are called), and do the same when it closes. Basically, a "hello world program".
Could someone pleeease do that?
I'm out of documentation. I searched the samples. And any of them work. Maybe I am doing something wrong when putting them inside the plugins folder(wtf?).
Thanks in advance.
Copy link to clipboard
Copied
You could look into any SnippetRunner sample plugin for the code to implement startup shutdown routines. You need to create a new boss class that provides the implementation of the startup shutdown service. Look for the code related to the boss class "kSnipRunStartupShutdownBoss" in the SnippetRunner plugin.
Apart from that make sure you are placing the Resources file of the plugin along with the plugin in the plugins folder, for it to load properly. Refer the documentation for more details.
-Manan
Copy link to clipboard
Copied
I knew that whoever would response this discussion, wouldnt make the sample I asked.
There's a reason why I asked the full-code of the thing. I'm not lazy or anything. I'm just afraid of messing up(which I am apparently doing now).
If I try to run snippet runner, create the new boss class and bla bla bla, I'll probably miss something and still will not get this to work.
I'll try it out anyway. But I'll certainly come back here in a few moments.
Thanks.
Copy link to clipboard
Copied
well, you answer helped out somehow.
I ran the SnippetRunner plugin. Set a messagebox in it's startupshutdown class' startup method and the messagebox did show up.
Now I'll see how its done and do the same.
Thanks
Copy link to clipboard
Copied
Hi Patrick,
we have also the problem, that the StartupShutdownService of our plug-in is not executed at plug-in-registration.
Strange that we had build a similar plug-in (for CS2) several years ago, using that service.
That plug-in was lost unfortunately.
As we need the plug-in to handle the interaction between the work item of our ad production work flow solution and the Adobe application, we've started to rebuil the plug-in starting with CS2.
The plug-in is loaded into CS2 without any error, but the StartupShutdownService::Startup()-method ist not processed.
If you have got the services Startup()-method to be executed at plug-in-registration, please let me know exactly, how you did it.
Kind regards
Jochen Seliger
Copy link to clipboard
Copied
Locked, please continue on thread Re-Asking: Help with startup/shutdown services