Bonjour,

J'ai esayé le code suivant pour convertir un doc Word vers une doc Pad, mais j'ai un erreur à la compilation su le mot "PDF" (avant dernière ligne)

Avez-vous une soluce ?

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
set myDoc to "/Users/X/Desktop/test.docx"
set pdfSavePath to "Users:X:Desktop:test.pdf"
 
tell application "Microsoft Word"
        activate
        open myDoc
        set theActiveDoc to the active document
        save as theActiveDoc file format format PDF file name pdfSavePath
    end tell
Merci pour votre aide

Thais