Hallo Willem,
so sollte es funktionieren ...
---
tell document 1 of application "Adobe InDesign CS2"
activate
try
set newLayer to layer "Verdränger-Ebene"
on error
set newLayer to make layer with properties ¬
{name:"Verdränger-Ebene"}
end try
set curSel to duplicate selection
set selection to {}
move curSel to layer "Verdränger-Ebene"
tell clipping path of graphic 1 of curSel
set newFrame to convert to frame
end tell
tell newFrame
delete graphic 1
set content type to unassigned
tell text wrap preferences
set properties to {text wrap type:contour, text wrap offset:"1 mm"}
end tell
end tell
end tell
---
... aber nur, wenn der Photoshop-Pfad "Textverdränger" als Maske definiert ist. Eine Umstellung, welche Du eventuell von Hand machst, ist per Script nicht möglich.
Der Befehl set content type to unassigned wandelt den Bildrahmen in einen Rahmen ohne Inhalt (= ohne störendes Kreuz).
Gruss, Hans
als Antwort auf: [#422536]