voici ce que j'ai trouver mais g toujours un problème a la ligne
"export format "Adobe PDF" to "Ma........." le script compile mais n'exporte pas portant mes paramètres sont bien présent !
quelqu'un peut-il mer dire pourquoi ?? WHY?

-- Export PDF with PDF export preset
-- Script for InDesign 3.x (CS) only
-- For InDesign 2.x, replace property "preset" with "style"
-- and "presets" with "styles"
tell application "InDesign CS"
set myPDFPresetName to "MyPDFPreset"
set found to false
-- Find existing PDF export presets of the same name
set numPresets to count PDF export presets
repeat with myCounter from 1 to numPresets
set currentPresetName to name of PDF export preset myCounter
if currentPresetName is equal to myPDFPresetName then
-- Found, so don't make a new one
set found to true
end if
end repeat
-- Not found, so make a new PDF export preset
if found is false then
make PDF export preset with properties {name:myPDFPresetName, view PDF:true, omit EPS:true}
end if
-- Try exporting
try
set myErrorMessage to "No documents are open"
set myDocument to active document
set myErrorMessage to "Can't export PDF"
-- Turn off user interaction to avoid dialogs
set user interaction level to never interact
tell myDocument
-- Export the document as Adobe PDF
export format "Adobe PDF" to "Macintosh HD:Test.pdf" using myPDFPresetName
end tell
-- Revert user interaction
set user interaction level to interact with all
on error
activate
display dialog myErrorMessage
end try
end tell
sh@rh
