I was in the process of converting some Quark XPress scripts over to OS X (10.2.4). I ran into a problem while getting properties of a picture box.
If I get the bounds of a picture box, it returns this:
«data FRMS006C0000006C000000D8000000D80000»
Interesting, says I, as the same command in Script Editor in OS 9 returns:
{“1.5"”, “1.5"”, “3"”, “3"”}
So I got the properties of the picture box (using Script Editor 1.9 in OS X) some of the properties are, how should I put this, “Wiggin’ out” comes to mind. Properties for rotation, shade, bounds and some items for frame (gap shade, shade, width, skew, text outset) are all returning «data» instead of what I would expect.
If I go back into OS 9, get the bounds of a picture box then get the class of the result, it says it’s ‘measurements rectangle’. My copy of AppleScript in a Nutshell doesn’t mention this data type AT ALL. (Same thing happens for the other ‘garbage’ properties - their classes are things like ‘percent’, ‘angle measurement’, ‘horizontal measurement’, etc)
Has anyone else experienced this? If so, here’s my guess - there are less know/hardly used data types that Quark uses but no one else does, so Apple pulled 'em from OS X. Or maybe these are QuickDraw data types. Or maybe my machine is screwed up - but I tried it on another Mac running 10.2.4 and it did the same thing.
Any thoughts?
Malcom
PS - Here’s the data class name and the 4 letter code that goes with them. The first 4 characters of the «data» string I guess are the type of data it is:
percent-'FX% ’
measurements rectangle-‘FRMS’
vertical measurement-‘FXVM’
horizontal measurement-‘FXHM’
angle measurement-'FX° ’
thick units-‘F_TH’
outset units-‘F_OU’
PSS - If I manually type this junk:
«data FRMS006C0000006C000000D8000000D80000»
into Script Editor for OS 9, it coerces it to:
{“1.5"”, “1.5"”, “3"”, “3"”}
:?