Re: Quark 4.11: Finding the containing text box.
Re: Quark 4.11: Finding the containing text box.
- Subject: Re: Quark 4.11: Finding the containing text box.
- From: John Fountain <email@hidden>
- Date: Tue, 12 Nov 2002 13:09:29 -0500
Thanks... This makes about as much sense as any other object reference
in Quark, i guess.
-john
On Monday, November 11, 2002, at 07:20 PM,
email@hidden wrote:
This shows the box which contains the selection:
---
tell document 1 of application "QuarkXPress 4.11"
show text box 1 of selection
end tell
---
And this returns the object reference of the same box:
---
tell document 1 of application "QuarkXPress 4.11"
set objRef to object reference of text box 1 of selection
end tell
---
And this returns the page number (if the box is sitting on
a page, else: an error message):
---
tell document 1 of application "QuarkXPress 4.11"
set pageNumber to name of page 1 of text box 1 of selection
end tell
---
Note the "1" in 'text box 1' and 'page 1'. This works, even
if the selection is, e.g., in text box 4 on page 3.
Hans Haesler <email@hidden>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.