Skip to main content
Known Participant
December 10, 2018
Answered

How can i remove this marked palette in Indesign menu bar.

  • December 10, 2018
  • 5 replies
  • 1288 views

How can i remove this marked palette in Indesign menu bar.

It is unexpectedly came from running some scripts while testing.

Please advise me.

Thanks in Advance,

Sabari K

This topic has been closed for replies.
Correct answer Laubender

Hi Sabari,

if the menu comes back after restarting there is either an installed plugin or a startup script that is causing this.

Uninstall InDesign, clean all preferences and caches. Reinstall.

Regards,
Uwe

5 replies

Known Participant
February 19, 2019

My sample Coding:

myDoc=app.documents[0];

x=myDoc.paragraphStyles.length;

for(i=2;i<x;i++){

myParaStyle=myDoc.paragraphStyles.item(i);

if(myPstyle.pointSize>10|| myPstyle.justification==unjustifiaction){

}

}

alert("completed")

How to find unjustify lines throughout the document.

For Example:Style- (Text_Ind & Left Justify)

I had tried sample coding, but not works properly.

I had attached sample screen shot.

Do you have any other sample scripts.

Please Advise me

Thanks in Advance,

Sabari K

Community Expert
December 12, 2018

sabarinathank82094987  wrote

…It is unexpectedly came from running some scripts while testing. …

What scripts did you test?

What's the exact name of the menu?

I can see that it is a submenu of menu main.

FWIW: There is also the method remove() for submenus.

I'd try something like the code below:

var subMenuToRemove = app.menus[0].submenus.itemByName("New Menu");

if( subMenuToRemove.isValid ){ subMenuToRemove.remove() };

If something goes wrong I'd suggest you uninstall and reinstall InDesign.

Regards,
Uwe

Community Expert
December 13, 2018

Hi Uwe,

I never had to add in the remove code explicitly. Once the script adding the menu was removed, the menu vanished after trashing the preferences. Is there some use cases where the menu gets stuck even after script removal?

Thanks

-Manan

-Manan
Community Expert
December 12, 2018

Hi Sabari,

did you perhaps tinker with ExtendScript's menuItems.add() method?

And now you do not know a way to remove the item?

Regards,
Uwe

Community Expert
December 10, 2018

This menu item can be created by either a plugin or a startup script. First step would be to identify which of these is that.

  • Did you install any plugin recently, try removing that and see if it removed this menu
  • Check the same for any scripts that you might have installed, check the startup scripts folder look the attached screenshot and see if the said folder has any script present, if it has try remove that and see if the menu disappears
  • Also after doing the above two steps, try trashing the InDesign preferences http://www.tech4pub.com/2012/10/10/indesign-tip-reset-preferences-to-improve-performance/

Let me know how it goes.

-Manan

-Manan
Known Participant
December 12, 2018

I had tried both occurrence for your instruction, no improvements.

Any sample scripts to delete that above mention reqirements.

I you have any other options to delete that palette, very needful for me

Thanks for your valuable time.

Thanks

Sabari

Community Expert
December 12, 2018

So you mean to say you don't have any new plugin installed neither any startup script is installed? And you also trashed the InDesign preferences?

Lets verify it, could you please post a screenshot of the following

  • The contents Plug-In folder of InDesign.
  • The contents of the startup scripts folder
  • Also a screenshot of Window>Extensions menu in InDesign. I suppose a CEP extension can also add menu entries(not quite sure though, but never harms to check)

-Manan

-Manan
Abambo
Community Expert
Community Expert
December 10, 2018

Discussion successfully moved from Forum comments to InDesign Scripting

ABAMBO | Hard- and Software Engineer | Photographer