• 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 box origins in Classic
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quark box origins in Classic


  • Subject: Re: Quark box origins in Classic
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 01 Jul 2003 09:06:23 +1000

On 1/7/03 5:47 AM +1000, Larry McMunn, email@hidden, wrote:

> I need to get the coordinates of text boxes on a page. In OS9, Box bounds were
> expressed like: {6p, 3p, 45p, 26p}
>
> However, working thru Classic, with OSX10.2.6, they are returned as some sort
> of data class.

Your choices are to either stick to Classic applets and use a Classic script
editor, or resort to liberal use of Quark's coerce command:

set theBounds to bounds of text box 1 of page 5 as list
set theTop to coerce (item 1 of theBounds) to real

--
Shane Stanley, 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.

  • Next by Date: re: Check for new mail
  • Next by thread: re: Check for new mail
  • Index(es):
    • Date
    • Thread