Je constate un comportement bizarre en matière de catégorisation dans Outlook 2016 sous El Capitan.
Dans la liste des catégories de l'interface graphique, il y a une catégorie appelée, disons, "Catégorie 1", avec la couleur rouge. Lorsque j'utilise l'interface graphique, cette catégorie est appliquée correctement.
Mais lorsque j'utilise AppleScript pour appliquer l'étiquette "Category1", une couleur différente est appliquée, et il n'y a pas de coche à côté de "Category1" dans l'interface graphique. C'est comme s'il y avait deux catégories avec le même nom, mais qu'AppleScript et l'interface graphique pointaient vers des catégories différentes.
Quelqu'un d'autre a-t-il vu cela, ou a-t-il une solution ?
Merci.
Mise à jour : Voici un extrait de code montrant comment j'utilise AppleScript. Notez également que beaucoup de mes catégories sont importées d'un fichier PST de Windows.
tell application "Microsoft Outlook"
-- get the currently selected message or messages
set selectedMessages to current messages
-- if there are no messages selected, warn the user and then quit
if selectedMessages is {} then
display dialog "Please select a message first and then run this script." with icon 1
return
end if
repeat with theMessage in selectedMessages
set categoryList to get categories of theMessage
set cleanCategoryList to {}
set wasCategoryRemoved to 0
repeat with theCategory in categoryList
if name of theCategory is "Category1" then
set wasCategoryRemoved to 1
else
set end of cleanCategoryList to theCategory
end if
end repeat
if wasCategoryRemoved is 0 then
set end of cleanCategoryList to category "Category1"
end if
set categories of theMessage to cleanCategoryList
end repeat
end tell