Trying to AppleScript an Xcode app. However, the AppleScript randomly complains on activation and/or running of the MyFirstImageReader.app that it can not read the menu tre