Erreur d’AppleScriptIl est impossible de rendre «class mbxp» "••• ÉRIC &
PASCAL •••" of application "Mail" dans le type
attendu.
”
is the response…
"••• ÉRIC & PASCAL •••" is a mailbox with subfolders "Éric" and "Pascal".
"••• ÉRIC & PASCAL •••" is empty "of course".
It was my first difficulty!
Gérard
Le 7 avr. 08 à 23:13, Michelle Steiner a écrit :
tell application "Mail" to my searchmailboxes(mailboxes whose mailboxes is not {})
on searchmailboxes(mailboxList)
repeat with thisMailbox in mailboxList
tell application "Mail"
my searchmailboxes(thisMailbox)
-- search for unread messages here
end tell
end repeat
end searchmailboxes