Saturday, April 22, 2006

Go get XPress - Part 2

The second function for our QuarkXPress bridge script is getContentsSize(). This function "returns character length of the text container with focus". Okay, we just get the character length of the current story, right? It goes something like this:

on getContentsSize()
  tell application "QuarkXPress"
    return length of story 1 of current box
  end tell
end getContentsSize

So far, so good.

0 Comments:

Post a Comment

<< Home