J'aimerais utiliser un message stocké dans le dossier 'Brouillons' en tant que model pour les autres messages. Malheureusement, je n'ai pas la syntaxe correcte:
tell application "Microsoft Outlook" -- locate the message set theMessage to the first message in mail folder drafts <== error: 'Can't make mail folder id 107 into type integer' -- show subject (testing) display dialog of the subject of theMessage -- for each contact with category 'foo' -- copy message -- add sender -- add first name to message's body -- set delivery date to 5 minutes in the future -- send message -- end loop end tell
Qu'est-ce qui me manque?
Le code corrigé:
-- locate the message set theMessage to the first message in drafts -- show subject (testing) display dialog of the (subject of theMessage as text)