2010-08-12 10 views

Répondre

2
tell application "Mail" 
    set theMessage to make new outgoing message with properties {visible:true, subject:"My Subject", content:"My Body"} 
    tell theMessage 
     make new to recipient at end of to recipients with properties {name:"Ben Waldie", address:"[email protected]"} 
    end tell 
    tell content of theMessage 
     make new attachment with properties {file name:pathToFile} at after last paragraph 
    end tell 
end tell 
+0

Merci, cela a fait l'affaire. J'ai dû faire un petit changement - faire nouveau pour le destinataire n'a pas fonctionné dans le bloc "tell content of theMessage" " –

+0

Désolé pour ça et merci de l'avoir corrigé." Il est encore tôt et j'étais pressé. –