No internet connection
  1. Home
  2. How to

How to determine the current status of a menu selection

By Andrew Sherman @Andrew_Sherman
    2021-04-25 06:05:49.517Z

    I'm trying to set up part of a script to run only if a menu element is not already selected.

    How can I determine if it's currently active?

    sf.ui.app('com.adobe.AfterEffects').menuClick({
        menuPath: ["Window","BG Renderer.jsxbin"],
    });
    
    Solved in post #2, click to view
    • 3 replies
    1. samuel henriques @samuel_henriques
        2021-04-25 07:00:40.005Z
        ReplySolution
        1. samuel henriques @samuel_henriques
            2021-04-25 07:41:09.596Z2021-04-25 17:45:16.991Z

            If you want to ask if it's not checked

            Use a ! at the start on the if condition.

            if (!sf.ui.proTools

            1. AAndrew Sherman @Andrew_Sherman
                2021-04-25 08:01:23.921Z

                Perfect, thank you