Copy link to clipboard
Copied
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
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
...Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Uh...
the site is: www.creativescripting.net
Bob
Copy link to clipboard
Copied
Hi,
Thank you. Now my menu with action is working whenever I start Indesign.
Regards
kumar
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more