Is it just me or is there a problem with Excel that prevents it’s menus from being redrawn properly when the app is activated by applescript in Leopard?
Running this script when Excel is not already running:
tell application “Microsoft Excel”
Results in Excel being opened and a window and toolbars visible but the menu bar is not visible.
Can anyone confirm that or offer a work around so that it activates properly?
Works fine for me, with OS X 10.5 on a 2.16 GHz Intel Core 2 Duo iMac. I get the full menu setup that I have designed along with the menu bar, and an open Workbook; Excel was not running at the time I ran your script.
What system are you using?
Thanks for posting. You helped me find my trouble and it wasn’t what I was using, it’s what I wasn’t using: the current version of Excel. Somehow I was using Excel X and didn’t notice.
After a few tweaks seems to be working as expected.