Hallo Willem,
per Script können sechs verschiedene Konturenführungstypen festgestellt werden. Darunter ist auch [#0000FF]user modified[/#], bei welchem manuell kein Verdrängungswert greifbar ist. Nachstehend ein Script, welches den aktuellen Konturenführungstyp mitteilt.
Der benutzermodifizierte Typ lässt sich nur unterscheiden, wenn das Bild mit dem Direktauswahlwerkzeug (weisser Pfeil) ausgewählt ist. Deshalb wird im Script einleitend auch der [#0000FF]content type[/#] untersucht, damit bei einer Auswahl mit dem schwarzen Pfeil auf das Bild umgeschwenkt wird.
tell document 1 of application "Adobe InDesign CS2"
[nbsp] try
[nbsp] [nbsp] set curSel to item 1 of selection
[nbsp] on error
[nbsp] [nbsp] display dialog "Nichts ausgewählt." buttons ¬
[nbsp] [nbsp] [nbsp] "OK" default button 1 with icon 2
[nbsp] [nbsp] error number -128
[nbsp] end try
[nbsp] try
[nbsp] [nbsp] set curContent to content type of selection
[nbsp] [nbsp] if curContent is graphic type then
[nbsp] [nbsp] [nbsp] set curSel to graphic 1 of selection
[nbsp] [nbsp] end if
[nbsp] end try
[nbsp] tell curSel
[nbsp] [nbsp] set textWrapType to text wrap type of text wrap preferences
[nbsp] [nbsp] if textWrapType is none then
[nbsp] [nbsp] [nbsp] set msg to "Keine Konturenführung"
[nbsp] [nbsp] else if textWrapType is bounding box text wrap then
[nbsp] [nbsp] [nbsp] set msg to "Konturenführung" & return & "um Begrenzungsrahmen"
[nbsp] [nbsp] else if textWrapType is contour then
[nbsp] [nbsp] [nbsp] set msg to "Konturenführung um Objektform"
[nbsp] [nbsp] else if textWrapType is jump object text wrap then
[nbsp] [nbsp] [nbsp] set msg to "Konturenführung:" & return & "Objekt überspringen"
[nbsp] [nbsp] else if textWrapType is next column text wrap then
[nbsp] [nbsp] [nbsp] set msg to "Konturenführung:" & return & "In nächste Spalte springen"
[nbsp] [nbsp] else if textWrapType is user modified then
[nbsp] [nbsp] [nbsp] set msg to "Konturenführung: Benutzermodifiziert"
[nbsp] [nbsp] end if
[nbsp] end tell
[nbsp] display dialog msg buttons "OK" default button 1 with icon 1
end tell
Vielleicht möchtest Du in Deinem Script das Wiederherstellen des ursprünglichen Pfades einbauen. Das könnte so gelingen:
tell document 1 of application "Adobe InDesign CS2"
[nbsp] try
[nbsp] [nbsp] tell graphic 1 of rectangle 1
[nbsp] [nbsp] [nbsp] tell text wrap preferences
[nbsp] [nbsp] [nbsp] [nbsp] if text wrap type is user modified then
[nbsp] [nbsp] [nbsp] [nbsp] [nbsp] set contour type of contour options to same as clipping
[nbsp] [nbsp] [nbsp] [nbsp] [nbsp] set contour type of contour options to photoshop path
[nbsp] [nbsp] [nbsp] [nbsp] end if
[nbsp] [nbsp] [nbsp] end tell
[nbsp] [nbsp] end tell
[nbsp] end try
end tell
Bitte mit einem neuen Dokument und mit nur einem Bild testen, weil der erste Bildrahmen angesprochen wird.
Gruss, Hans