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

[CS3][JS]Create menu permenently?

Community Beginner ,
Aug 05, 2009 Aug 05, 2009

Hi,

    Is it possible to create menu with menu item permenently? I have placed my script file in the scripts panel folder inside the scripts folder.

I have added a menu at the main menu bar. It works until I close the Indesign.When I restart Indesign the menu is not working. I have included the statement #targetengine "session" in my JavaScript.According to the specification the target statement creates object that persist until close the Indesign. But my question is can I create menu with menu action permenently like other menu in the menubar such as File menu,Edit menu......

Please advice me.

Regards

Kumar

TOPICS
Scripting
657
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

correct answers 1 Correct answer

Adobe Employee , Aug 05, 2009 Aug 05, 2009

Absolutely.

Persistent scripting engines are created when InDesign starts. To do that your script needs to be in a folder names "startup scripts" somewhere underneath the "Scripts" folder (not Scripts Panel folder).

.

The easiest way to do it is to create a folder (myFolder), under that, create a folder, "startup scripts", and place your script into "startup scripts".

On my web site, I have (in Free Stuff) a sample project that is certainly more complex than you describe here; however, it does show

...
Translate
Adobe Employee ,
Aug 05, 2009 Aug 05, 2009

Absolutely.

Persistent scripting engines are created when InDesign starts. To do that your script needs to be in a folder names "startup scripts" somewhere underneath the "Scripts" folder (not Scripts Panel folder).

.

The easiest way to do it is to create a folder (myFolder), under that, create a folder, "startup scripts", and place your script into "startup scripts".

On my web site, I have (in Free Stuff) a sample project that is certainly more complex than you describe here; however, it does show exactly how to get menus and context menus to work.

Regards

Bob

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 ,
Aug 05, 2009 Aug 05, 2009

Uh...

the site is: www.creativescripting.net

Bob

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 ,
Aug 05, 2009 Aug 05, 2009
LATEST

Hi,

   Thank you. Now my menu with action is working whenever I start Indesign.

Regards

kumar

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