Hi all,
I'm trying to create an anchored text frame in InDesign using AppleScript. I can do this manually as follows:
• Create first text frame with some text in it • Create a second, small text frame with some text in it • Copy and paste the smaller text frame midway through the text
The result is that when you edit the text in the first text frame, the second anchored text frame moves up and down accordingly.
I tried to do this via AppleScript like this:
tell application "Adobe InDesign CS2" tell front document tell text frame 1 --make an anchored text frame at the end of the existing text make new text frame at end of contents with properties {contents:"blah"} end tell end tell end tell
...but it doesn't seem to work. I get the error:
"Adobe InDesign CS2 got an error: Can't make class text frame."
...I've tried a few alternate approaches but I can't seem to get any to work. Does anyone know how to do this? Any hints would be appreciated!
Thanks Rob
Important: This message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination or copying of the communication is strictly prohibited. If you have received this communication in error, please notify the writer immediately by telephone and return the original message via postal service to the writer's attention at the above address. Thank you.
Watt Gilchrist Limited. Albion Mills, Albion Road. Bradford, BD10 9TQ
Registered in England
873405
|