Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Using startup/shutdown services

New Here ,
Oct 18, 2012 Oct 18, 2012

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.

TOPICS
SDK
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 19, 2012 Oct 19, 2012

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 19, 2012 Oct 19, 2012

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 23, 2012 Oct 23, 2012

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 22, 2016 Jun 22, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 23, 2016 Jun 23, 2016
LATEST

Locked, please continue on thread Re-Asking: Help with startup/shutdown services

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines