Re: Quark5 (on os x) problem parsing bounds
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.