I can't find a means of bringing a selected graphic object to the front (as per the "Arrange > Bring to Front" Command)
Or indeed, sending it backwards.
Here's the issue. I'm using the following function to create links between nodes in a network, and the labels are (for whatever reason) drawing behind the connectors. I'd like to bring the label object forward, and can't.
Caveat: I'm new to AppleScript. It seems horribly undocumented.
Or indeed, sending it backwards.
Here's the issue. I'm using the following function to create links between nodes in a network, and the labels are (for whatever reason) drawing behind the connectors. I'd like to bring the label object forward, and can't.
Caveat: I'm new to AppleScript. It seems horribly undocumented.
Code:
on linkCircle(fromTag, toTag) tell application "OmniGraffle Professional 5" tell canvas of front window set fromCircle to the first solid whose tag = fromTag set toCircle to the first solid whose tag = toTag tell fromCircle set newConnection to connect to toCircle with ¬ properties {line type:orthogonal} end tell set newLabel to make new shape at end of graphics ¬ with properties {draws shadow:false, autosizing:full, ¬ text:{text:"hello world", alignment:center}, ¬ draws stroke:false} set labelConnection of newLabel to newConnection end tell end tell end linkCircle