Command: valid link target
Determines whether the text frame of one shape can be linked to the text frame of another shape.
Returns true if target textframe is a valid target. Returns false if target textframe already contains
text or is already linked, or if the shape doesn't support attached text.
valid link target text frame Required. An expression that returns a text frame object.
target textframe text frame Required. The target text frame to which youd like to link the text
frame returned by the expression.
This example checks to see whether the text frames for the first and second shapes in the active
document can be linked to each other. If so, the example links the two text frames.
set myFrame1 to text frame of shape 1 of active document
set myFrame2 to text frame of shape 2 of active document
if (valid link target myFrame1 target textframe myFrame2 then
set next textframe of myFrame1 to myFrame2
display dialog "The text frames can't be linked"
Command: z order
Moves the specified shape in front of or behind other shapes in the document (that is, changes the
shape's position in the z-order).
z order shape Required. An expression that returns a shape object.
z order command enumeration Required. Specifies where to move the specified shape relative
to the other shapes. Can be one of the following: bring shape forward, bring shape in front of
text, bring shape to front, send shape backward, send shape behind text, or send shape to
Use the z order position property to determine a shapes current position in the zorder.