Hallo Peter,
bitteschön. Hättest Du mich doch schon früher gefragt! ;-)
Spass beiseite. Es sind nur zwei Attribute der Bildbox zu speichern. Nämlich 'flipped horizontal' und
'flipped vertical', die Spiegelung. Aber diese sind je nach XPress-Version unterschiedlich zu behandeln.
Bis und mit QuarXPress 4.11:
---
tell document 1 of application "QuarkXPress 4.11"
tell current box
set imgProps to properties of image 1
set flippedHoriz to flipped horizontal
set flippedVert to flipped vertical
-- neues Bild laden, Attribute zuweisen
end tell
end tell ---
Für QuarkXPress 5.01 muss eine vorhandene vertikale Spiegelung aufgehoben werden, bevor man
die Properties des Bildes speichert. Sont ist das Resultat nach dem Zuweisen falsch:
---
tell document 1 of application "QuarkXPress 5.01"
tell current box
set flippedHoriz to flipped horizontal
set flippedVert to flipped vertical
if flippedVert is true then set flipped vertical to false
set imgProps to properties of image 1
if flippedHoriz is true then set flipped horizontal to false
-- neues Bild laden, Attribute zuweisen
end tell
end telltell document 1 of application "QuarkXPress 6.5"
tell current box
set flippedHorz to flipped horizontal
set flippedVert to flipped vertical
if flippedHorz is true then set flipped horizontal to false
if flippedVert is true then set flipped vertical to false
set imgProps to properties of image 1
-- neues Bild laden, Attribute zuweisen
end tell
end tell ---
Gruss, Hans