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

Quark box origins in Classic


  • Subject: Quark box origins in Classic
  • From: Larry McMunn <email@hidden>
  • Date: Mon, 30 Jun 2003 15:47:31 -0400

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.

If I use the following script, Display Dialog will coerce the item returned into a string to display it, but when I try to coerce it to a string, all the normal methods (as string, as text, contents of, text of, etc.) fail.

tell application "XPress4.1"
activate
tell document 1
set theBounds to bounds of text box 1 of page 5 as list
-- sets theBounds to {<<data FXVM00480000>>, <<data FXHM00240000>>, <<data FXVM01251DD9>>, <<data FXHM01950000>>}
end tell

--THIS FAILS:
set vertStart to (item 1 of theBounds) as string
--Gives Error Message: Can't make <<data FXVM00240000>> into a string.

--THIS WORKS:
set vertStart to (item 1 of theBounds) --to get Y coordinate of text box origin
-->> sets vertStart to <<data FXVM00480000>>
display dialog vertStart
-->> displays "6p" --which is the value I want
--But I really don't want to display it,
--I want to load it into another variable for analysis
end tell

Any ideas?

--

Happy Automation! :-)

Larry McMunn
President

McMunn Associates, Inc.
Specialists in automated Data Visualization through Apple products
Collingswood, NJ

(856) 858-3440
---------------------------------------------------------------
_______________________________________________
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.

  • Prev by Date: Re: Subroutine not passing right event?
  • Next by Date: Redeem Your Coupon-Get Your Apology Early (The Line is Long)
  • Previous by thread: Re: Subroutine not passing right event?
  • Next by thread: Strange problem with quotes running away and hiding!
  • Index(es):
    • Date
    • Thread