Re: [AS] Outlook print as pdf

Page principale
Supprimer ce message
Répondre à ce message
Auteur: thomas@ibaza.net
Date:  
À: La liste AppleScript Francophone
Sujet: Re: [AS] Outlook print as pdf
Ok merci. Je prends la route là je testerai ça demain

Envoyé de mon iPhone

> Le 2 mars 2019 à 12:28, Yvan KOENIG <koenigyvan@???> a écrit :
>
> Oops j'ai oublié qu'il peut être utile d'employer POSIX file.
>
> set pdfFolder to POSIX path of ((path to home folder as text) & "Temp:") # pour ne pas être lié à un utilisateur
>
> tell application "Microsoft Outlook"
>
>    set My_Messages to selected objects
> set i to 0
> repeat with aMessage in My_Messages
>    set i to i + 1
>    set pdfPath to pdfFolder & "mail #" & i & ".pdf"
>    tell me to do shell script "touch " & quoted form of pdfPath # Crée le fichier si nécessaire
>    tell me to set pdfPath to POSIX file pdfPath # ajouté
>    print aMessage with properties {as pdf:true, path name:pdfPath, error handling:detailed}
> end repeat
> end tell

>
> Yvan KOENIG (VALLAURIS, France) samedi 2 mars 2019 12:28:14
> _______________________________________________
> Applescript_fr mailing list
> Applescript_fr@???
> http://listes.patpro.net/mailman/listinfo/applescript_fr


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