Hallo Andreas,
angesichts der Flut von Antworten ;-) habe ich versucht, mich schlau zu machen,
um Dir endlich weiterzuhelfen.
Mit FileMaker hatte ich überhaupt keine Erfahrung. Doch nach einigem Herumpröbeln
fand ich heraus, wie ein Script im "ScriptMaker" in ein Fenster kopiert werden kann.
Beim ersten Abspielen kam auch die von Dir rapportierte Fehlermeldung. Ich änderte
das Script auf ein Minimum, und konnte eine erste Aktion ausführen. Dann fügte ich
die 'bounds' wieder ein und zeigte mit einem Dialog den ersten Wert an. Der Begriff
'box overflows' ist auch bekannt. Er ergab als Resultat ein 'true'.
Daraufhin schrieb ich den Befehl um: das '= false' ersetzte ich durch ein 'not'.
Und siehe da: es funktioniert. Aber bitte frage mich nicht, warum...
---
tell document 1 of application "QuarkXPress Passport™"
activate
tell current box
set {y1, x1, y2, x2} to bounds as list
set y2 to y2 as real
repeat until not box overflows
set y2 to y2 + 2
set bounds to {y1, x1, y2, x2}
end repeat
end tell
end tell
---
Eine Variante:
---
tell document 1 of application "QuarkXPress Passport™"
activate
tell current box
set hB to height of bounds as real
repeat until not box overflows
set hB to hB + 2
set height of bounds to hB
end repeat
end tell
end tell
---
Hans Haesler, <a href="mailto:hsa@ringier.ch">hsa@ringier.ch</a>