Hallo TMA,
dieses Thema hatten wir sicher hier schon einmal diskutiert. Ich habe aber in der Eile nichts gefunden. Wäre wirklich hilfreich, wenn die Suche wieder funktionieren würde ...
Wenn Objekte ausgewählt sind, kann das Gruppieren so gelingen:
---
tell document 1 of application "QuarkXPress 6.52"
activate
set grouped of group box 1 to true
set selected of group box 1 to false
end tell
---
Ohne manuelle Auswahl kann das Script die Objekte auswählen und gruppieren. Das folgende Snippet erwartet eine Textbox und eine Bildbox.
---
tell document 1 of application "QuarkXPress 6.52"
activate
set tool mode to drag mode
set selected of text box 1 to true
set selected of picture box 1 to true
set grouped of group box 1 to true
set selected of group box 1 to false
end tell
---
Gruss, Hans
als Antwort auf: [#422778]