Monday, May 01, 2006

Go get XPress - Part 4

The 4th function too is simple. The getSelection() function returns the selected range in a form described in the last post.

on getSelection()
  tell application "QuarkXPress"
    set aSelection to selection
    return {(offset of aSelection) + 1, (length of aSelection)}
  end tell
end getSelection

Now we have 3 more functions to go.

0 Comments:

Post a Comment

<< Home