有没有办法在 Outlook 2011 for Mac 中按类别搜索联系人?
tell application "Microsoft Outlook"
-- get the category by name
set theCategory to item 1 of (every category whose name = "Recruiter")
-- correctly displays 'Recruiter [25]'
display dialog (name of theCategory) & " [" & (id of theCategory) & "]"
-- perform the search (incorrectly, it seems)
set theContacts to (every contact whose (every category contains theCategory))
-- should display ~100; actually displays 0
display dialog (count of theContacts)
end tell