FileMaker aware of the sidebar

Is there any way for a FileMaker script to be aware of the state of the sidebar? For example, can I set an IF/THEN in a FileMaker script based on the calendar sidebar being open or closed?
Similarly, is there any way for a FileMaker script to open or close the Calendar sidebar?
Thanks,
Jason
Similarly, is there any way for a FileMaker script to open or close the Calendar sidebar?
Thanks,
Jason