Bonjour,
J''essaye d'automatiser la création d'un livre InDesign mais j'ai l'erreur suivante :
Voici le script :
À mon avis c'est un bug. Quelqu'un peut tester ça chez lui ? Si possible dans une version US. :zen:
J''essaye d'automatiser la création d'un livre InDesign mais j'ai l'erreur suivante :
Bloc de code:
Erreur dans InDesign CS : Impossible de créer la classe book.
Voici le script :
Bloc de code:
set myFolder to choose folder with prompt "Sélectionnez le dossier qui contient les fichiers InDesign."
set myFileList to {}
tell application "Finder"
set myFiles to files of myFolder
repeat with myFileCounter from 1 to (count myFiles)
if file type of item myFileCounter of myFiles is "IdD3" then
copy (item myFileCounter of myFiles) as string to end of myFileList
end if
end repeat
end tell
if (count myFileList) > 0 then
set myBookFile to choose file name with prompt "Sauvegarder le livre comme"
tell application "InDesign CS"
set myBook to make book with data myBookFile
repeat with myFileCounter from (count myFileList) to 1 by -1
tell myBook
make book content with data (item myFileCounter of myFileList)
end tell
end repeat
end tell
else
display dialog "Pas de fichiers InDesign trouvés dans le dossier sélectionné."
end if
À mon avis c'est un bug. Quelqu'un peut tester ça chez lui ? Si possible dans une version US. :zen: