It appears that, at least in OSX 10.5.5, in System Preferences->Desktop & Screen Saver->Desktop, there is a check box for “Translucent Menu Bar”. Unchecking this option appears to make the menu non-translucent.
However, I am still seeing problems similar to the original post here. For instance, if I have Safari open on my SUT (Mac 10.5.5 with non-translucent menu bar), I am able to find the text of all the menu bar headings except for “Bookmarks”. My script:
if ImageFound(5, (Text:"Bookmarks", TextStyle:"Menu"))
LogError "Text for Bookmarks menu not found."
does not find the Bookmarks text image.
I also have a related question. I would like to have a text style for menu items on Mac – the menu bar can be set to non-translucent, but the menus themselves are still translucent, so the background color of the menu item text is different depending on whether there are windows behind the menu or just the desktop background. Is there a good way to get around this translucent menus problem?