• 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: Quark5 (on os x) problem parsing bounds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quark5 (on os x) problem parsing bounds


  • Subject: Re: Quark5 (on os x) problem parsing bounds
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 24 Jul 2002 13:18:20 +1000

On 24/7/02 12:59 PM +1000, john mead, email@hidden, wrote:

> Given this script:
>
> tell application "QuarkXPress"
> activate
> tell document 1
> set myTextBox to make text box at beginning
> tell myTextBox
> set bounds to {"3p0", "3p0", "5p0", "48p0"}
> get bounds
> end tell
> end tell
> end tell
>
> The "get bounds" command returns something like this:
> +data FRMS0024000000240000003C000002400000;
> ...in the script editors results window.
>
> My qestion is, what is this data object and how can I
> parse it? Is this just something going haywire in os x
> perhaps?

QuarkXPress's built-in coercions don't work properly in OS X; you have to
explicitly coerce using the coerce command:

set x to bounds
set x to coerce x to list
set theTop to coerce (item 1 of x) 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.

References: 
 >Quark5 (on os x) problem parsing bounds (From: john mead <email@hidden>)

  • Prev by Date: Quark5 (on os x) problem parsing bounds
  • Next by Date: Re: path to frontmost application as text but another way...
  • Previous by thread: Quark5 (on os x) problem parsing bounds
  • Next by thread: Backup Droplet
  • Index(es):
    • Date
    • Thread