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

How to run script in ID CS3's menu?

Community Beginner ,
Jul 18, 2008 Jul 18, 2008
Hi,
I want to run my script by ID CS3's menu,anyone can tell me how to do?

goldbridge
TOPICS
Scripting
646
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
People's Champ ,
Jul 18, 2008 Jul 18, 2008
Look on this place, for the break columns to text frames topic.
A guy wrote a script using this opportunity.
Loic
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 ,
Jul 19, 2008 Jul 19, 2008
Thanks Loic,I want to get some example's codes,anyone can help me?
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
Engaged ,
Jul 21, 2008 Jul 21, 2008
Download the "indesign_cs3_guide_scripts", cant remember where i found them.

What yoy are looking fore is:
#targetengine "session"
//ScriptMenuAction.jsx
//An InDesign CS3 JavaScript
//
//Adds a menu at the end of the main menu bar.
var mySampleScriptAction = app.scriptMenuActions.add("Display Message");
var myEventListener = mySampleScriptAction.eventListeners.add("onInvoke", function(){alert("This menu item was added by a script.");});
//If the submenu "Script Menu Action" does not already exist, create it.
try{
var mySampleScriptMenu = app.menus.item("$ID/Main").submenus.item("Script Menu Action");
mySampleScriptMenu.title;
}
catch (myError){
var mySampleScriptMenu = app.menus.item("$ID/Main").submenus.add("Script Menu Action");
}
var mySampleScriptMenuItem = mySampleScriptMenu.menuItems.add(mySampleScriptAction);
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
Explorer ,
Jul 21, 2008 Jul 21, 2008
re: "Download the "indesign_cs3_guide_scripts", cant remember where i found them."

From the InDesign scripting home page, where else?:-)

http://www.adobe.com/products/indesign/scripting/index.html

...and it's mentioned at the top of this forum.

Thanks,

Ole
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 ,
Jul 21, 2008 Jul 21, 2008
LATEST
Thomas B. Nielsen, Ole thanks a lot!
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