🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
3 messages
3 total messages Started by subha_oviya Wed, 11 Feb 2009 14:15
Add menus in Start up Script
#1495
Author: subha_oviya
Date: Wed, 11 Feb 2009 14:15
6 lines
652 bytes
Hi All,

How to add Menus and menu item in Indesign Start up Script?

Thanks
Senthil.C
Re: Add menus in Start up Script
#1353
Author: Kasyan_Servetsky
Date: Wed, 11 Feb 2009 16:04
23 lines
1431 bytes


 
#targetengine "session"
var myScript1 = new File(app.filePath + "/Scripts/Scripts Panel/script1.jsx");
var myScriptAction1 = app.scriptMenuActions.add("Script 1");
var myEventListener1 = myScriptAction1.eventListeners.add("onInvoke", myScript1, false);

var myScript2 = new File(app.filePath + "/Scripts/Scripts Panel/script2.jsx");
var myScriptAction2 = app.scriptMenuActions.add("Script 2");
var myEventListener2 = myScriptAction1.eventListeners.add("onInvoke", myScript2, false);

try{
   var myScriptMenu = app.menus.item("$ID/Main").submenus.item("Scripts");
   myScriptMenu.title;
}
catch (myError){
   var myScriptMenu = app.menus.item("$ID/Main").submenus.add("Scripts");
}

var myScriptMenuItem1 = myScriptMenu.menuItems.add(myScriptAction1);
var myScriptMenuItem2 = myScriptMenu.menuItems.add(myScriptAction2);
Re: Add menus in Start up Script
#1371
Author: senthil_nagore
Date: Thu, 12 Feb 2009 06:59
6 lines
696 bytes
Hi Kasyan Servetsky,

It works,Many thanks.

Regards
Senthil.C
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads