RE: Quark: copying across text boxes
RE: Quark: copying across text boxes
- Subject: RE: Quark: copying across text boxes
- From: "Stockly, Ed" <email@hidden>
- Date: Tue, 4 Dec 2001 15:21:40 -0800
>>>If there's a document that flows a story from one text box to another, how do you copy the entire story in which the insertion point is placed?
Try this:
tell application "QuarkXPress(tm)"
tell current box of document 1
set myStory to the object reference of story 1
end tell
copy the text of myStory to theCopy
end tell
>>>>I *almost* have the hang of this.
Yes, you are very close, the major difference between your version and mine is that I've moved the copy command outside the tell current box block. When it's inside that block the scope of the command is confined to the target of the tell. Ideally this command would give you only the text of the current box and none of the rest of the story. Instead, with Quark's inconsistencies, it gives you everything from the beginning of the story to the last character in the current box.
HTH
ES