Outlook for Mac

Outlook Mac 2011 does not provide the "index" property to scripts as documented in the dictionary

待回答 0 个回答

较早的帖子,发布于 2012年11月1日。 其中的信息可能已经过时。

本帖暂无中文翻译,以下为英文原文。

问题 提问于 2012年11月1日
I have an AppleScript program which does many things. It needs to determine the "front" or active window. According to the Outlook dictionary, each window has the following property:
   index (integer) : The index of the window in the back-to-front window ordering.

I am experiencing at least three bugs with the index property:

1. I can access the index property, but it never changes as windows are brought to the front, pushed to the back, or selected from the Window menu.


2. The index for every Main window is a Real, not an Integer.

tell application "Microsoft Outlook"

   index of every window

end tell 

{2.147483647E+9, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}



3. The indices for two Main Windows are indistinguishable. If there is a difference, it is way down in the small digits of the floating point: 

tell application "Microsoft Outlook"

   index of every main window

end tell

{2.147483647E+9, 2.147483647E+9} 

暂无回答

撰写回答

您的邮箱地址不会被公开。请勿发布密码。

This site uses Akismet to reduce spam. Learn how your comment data is processed.