Hallo Scripter,
die Hintergrundfarbe einer Bildbox, welche keine hat,
wird in der Farbenpalette als "Keine" angegeben.
Wenn man per Script den Namen der Farbe verlangt, dann
ist das Ergebnis "Kein". Ohne Schluss-"e". Und dieses
"Kein" kann man mit QuarkXPress 6.52 benutzen, um die
Hintergrundfarbe eine Box zu entfernen.
Auch die Konstante null kann verwendet werden. Eine Box
mit Hintergrundfarbe auswählen und dieses Script starten.
---
tell document 1 of application "QuarkXPress 7.02"
[color=#0000FF]tell current box
set color to null
end tell
end tell[/color]
---
Aber mit QXP 7.02 wird in der Palette "Weiß" angezeigt.
Ausnahme: Wenn die Farbe vorher schon "Weiß" ist, stimmt
das Ergebnis (= "Keine").
Abhilfe? Den Befehl verdoppeln:
---
tell document 1 of application "QuarkXPress 7.02"
tell current box
set color to null
set color to null
end tell
end tell
---
Denselben Doppelschlag muss man anbringen, wenn eine Box
erzeugt wird und die Hintergrundfarbe "Keine" sein soll:
---
tell document 1 of application "QuarkXPress 7.02"
activate
make picture box at beginning with properties {bounds:{20, 20, 50, 50}, color:null}
tell picture box 1
set color to null
end tell
end tell
---
Gruss, Hans