• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Quark 4.11: Finding the containing text box.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quark 4.11: Finding the containing text box.


  • Subject: Re: Quark 4.11: Finding the containing text box.
  • From: Hans Haesler <email@hidden>
  • Date: Mon, 11 Nov 2002 21:50:49 +0100

On Mon, 11 Nov 2002, John Fountain wrote:

>Can anyone help with finding the containing text box of a character?

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.

References: 
 >Quark 4.11: Finding the containing text box. (From: John Fountain <email@hidden>)

  • Prev by Date: Wake up!!
  • Next by Date: Background shell script...
  • Previous by thread: Quark 4.11: Finding the containing text box.
  • Next by thread: Re: Quark 4.11: Finding the containing text box.
  • Index(es):
    • Date
    • Thread