Re: [AS] Scripter mail

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Yvan KOENIG via Applescript_fr
Date:  
À: Liste AppleScript francophone
CC: Yvan KOENIG
Sujet: Re: [AS] Scripter mail

Comme je suis têtu j'ai cherché sur le net.
Il semble que le code ci-dessous pourrait effectuer le travail voulu.
ATTENTION, il suppose qu'un tableur soit ouvert dans Excel car je ne sais pas comment en créer un.

#<code>
tell application "Mail"
    # grab a selected message
    set unMessage to item 1 of (get the selection)
    # fill the clipboard with the contents of the message
    set theDatas to (get content of unMessage)
end tell


set nbr to count paragraphs of theDatas
set theRange to "A1:A" & nbr


tell application "Microsoft Excel"
tell sheet "Sheet1" of workbook 1
tell range theRange
set value to theDatas
end tell
end tell
end tell
#/<code>

Yvan KOENIG (VALLAURIS, France) mardi 22 octobre 2019 12:00:03


_______________________________________________
Applescript_fr mailing list
Applescript_fr@???
http://listes.patpro.net/mailman/listinfo/applescript_fr