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

Menu dimmed on macOS but not on windows with custom menu and command (FR/EN)

New Here ,
Jul 08, 2019 Jul 08, 2019

Copy link to clipboard

Copied

Hi all,

I developed a custom command and menu that mainly consists of a few search and replace of multiple values of the active document.

I installed it on 2 computers. On the windows, I had no problem, everything works according to the expected behavior.

On the other hand, I also installed it on a mac and there the menu is appeared but is dimmed: impossible to launch the custom command.

I tried to force the menu with the following code, but it does not work:

function canAcceptCommand () {

     if (dw.getDocumentDOM ()! = null) {

          return true;

     }

}

Do you have an idea of the problem? Thanks in advance !

Melisandre

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Bonjour à tous,

J'ai développé un commande et un menu personnalisé qui consiste principalement à rechercher/remplacer plusieurs valeur du document actif.

Je l'ai installé sur 2 ordinateurs. Sur le windows, je n'ai eu aucun problème, tout fonctionne selon le comportement attendu.

Par contre, je l'ai aussi installé sur un mac et là le menu est apparait mais est grisé : impossible de lancer la commande personnalisée.

J'ai essayé de forcer le menu avec le code suivant, mais cela ne fonctionne pas :

function canAcceptCommand() {

     if (dw.getDocumentDOM() != null) {

          return true;

     }

}

Auriez vous une idée du problème ? D'avance merci !

Melisandre

version dw.JPG

menu-grise.png

version-mac.png

Views

393

Translate

Translate

Report

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
no replies

Have something to add?

Join the conversation