By Andrew Sherman @Andrew_Sherman
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"],
});
samuel henriques @samuel_henriquesHello @Andrew_Sherman,
This should do it:
Enable / Disable Menu Item instead of Toggle? #post-3
samuel henriques @samuel_henriquesIf you want to ask if it's not checked
Use a ! at the start on the if condition.
if (!sf.ui.proTools
- In reply tosamuel_henriques⬆:AAndrew Sherman @Andrew_Sherman
Perfect, thank you