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

Un correspondand m'a répondu sur MacScriper.
Il semble que le code ci-dessous pourrait effectuer le travail voulu.
ATTENTION, il suppose qu'un tableur soit ouvert dans Excel.

#<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 the Clipboard to (get content of unMessage)
end tell
tell application "Microsoft Excel"
    tell sheet "Sheet1" of active workbook
        activate object range "A1"
        paste
    end tell
end tell
#/<code>


Bien entendu je n'ai pu tester mais j'espère que vous me tiendrez au courant du comportement de la bête.

Yvan KOENIG (VALLAURIS, France) mardi 22 octobre 2019 16:29:50


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