I was not able to find any use case when File -> Save menu is enabled. So Im wondering if there's any ? Also at line 37 you are calling shell menu File -> Properties and then clicking on OK. This seems to be needless operation ..?