I'm doing a script to download/export attachments from journals but sometimes the option export in ToolbarButton is enabled and other does not, my question is how can I detect with a script if the option is enabled or not,
Actually in the script the code is:
I need, if the option is disabled select display option to download the attachment.
I hope that you could help me.
Thanks in advance.