Can a script detect when Edit > Fade is (not) available?
Let's say I would like a script to open the Fade dialog.
(1) To prevent a potential error, I would like to check if Fade is available or not.
Is this possible in a script?
(2) [SOLVED] When the Fade dialog opens, am I still in my script?
If so, can I catch when the user simply cancels the dialog, and can I then let the script do something (else)?
(This seems related but in case you create your own dialogs...
how-do-i-stop-running-a-script-when-i-hit-cancel-on-dialog-box )
if (Edit>Fade is available) {
var idFade = charIDToTypeID( "Fade" );
executeAction( idFade, undefined, DialogModes.ALL );
}
Thank You for any pointers 🙂