| To: | REALbasic NUG French <realbasic-nug.fr@lists.realsoftware.com> |
|---|---|
| Subject: | AppleScript et piece jointe |
| From: | frael <frael@marine-label.com> |
| Date: | Wed, 18 Jun 2008 12:08:45 +0200 |
| Authentication-results: | mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug.fr-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug.fr-bounces@lists.realsoftware.com |
| Delivered-to: | listarchive@realsoftware.com |
| Reply-to: | REALbasic NUG French <realbasic-nug.fr@lists.realsoftware.com> |
| Sender: | realbasic-nug.fr-bounces@lists.realsoftware.com |
Salut à tousJe suis tombé sur le problème cette nuit et j'ai mis un message à la nug us qui répond plus vite le soir... mo pas de reponse :-( Et ce matin jme suis rappelé kil y a plein de bons en AS par ici...Jje veux scripter MAIL pour lui faire créer un nouveau mail, et ca marche sauf l'ajout de pièce jointe
Mon AS "SendMail" :
on run {wadr, wobj, wbody, watta}
tell application "Mail"
set newMessage to make new outgoing message with properties
{subject: wobj, content: wbody}
tell newMessage
make new to recipient at end of to recipients with properties
{address:wadr}
make new attachment with properties {file name:alias watta} at
after the last paragraph
set visible to true
end tell
activate
end tell
end run
Dans RB :
SendMail(theadr, theobj, thebody, aFolderItem.AbsolutePath)
Resultat : le mail est créé avec les bonnes adresse, object, body ,
mais il ne comprend pas la PJ...
(je suis sur que aFolderItem est un fichier valide) Kisséki aurait une idée ??? Merci Marc |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: parsedate sous linux, Emile Schwarz |
|---|---|
| Next by Date: | application sous linux ubuntu, michel bulteau |
| Previous by Thread: | DataControl, Alain Legarcon |
| Next by Thread: | Re: AppleScript et piece jointe, Benoit Widemann |
| Indexes: | [Date] [Thread] [Top] [All Lists] |