This content has been marked as final.
Show 4 replies
-
1. Re: [CS3 JS] Positioning items in menus
Kasyan Servetsky Feb 13, 2009 5:55 AM (in response to Skempy)var myScriptMenuItem3 = myFileMenu.menuItems.add(myScriptAction3, LocationOptions.AFTER, SomeScriptMenuItem);
LocationOptions can be: BEFORE/AFTER some menu item, AT_BEGINNING/AT_END of the containing object (submenu). -
2. Re: [CS3 JS] Positioning items in menus
Skempy Feb 13, 2009 6:19 AM (in response to Skempy)Thanks,
This helps a bit.
What do I use for "SomeScriptMenuItem".
I have tried...
var myScriptMenuItem3 = myFileMenu.menuItems.add(myScriptAction3, LocationOptions.AFTER, "User...");
var myScriptMenuItem3 = myFileMenu.menuItems.add(myScriptAction3, LocationOptions.AFTER, User);
var myScriptMenuItem3 = myFileMenu.menuItems.add(myScriptAction3, LocationOptions.AFTER, 24);
I want my menu item to appear after "User..." in the file menu.
Thanks -
3. Re: [CS3 JS] Positioning items in menus
Kasyan Servetsky Feb 13, 2009 6:38 AM (in response to Skempy)SomeScriptMenuItem is a variable referencing to some menu item.
e.g.
var SomeScriptMenuItem = app.menus.item("$ID/Main").submenus.item("File").menuItems.item("User..."); -
4. Re: [CS3 JS] Positioning items in menus
Skempy Feb 13, 2009 7:01 AM (in response to Skempy)That did the trick.
Thank you very much for sharing your time and knowledge.
I am reluctant to ask for help on this forum until I have attemted to find the solution using the Adobe scripting publications - in this case, the menu scripting section was far too complicated for me.
Thanks again.
Simon

