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