Re: What's so great about AppleScript, anyway? (was Re: Tell Blocks Considered Harmful…)
Re: What's so great about AppleScript, anyway? (was Re: Tell Blocks Considered Harmful…)
- Subject: Re: What's so great about AppleScript, anyway? (was Re: Tell Blocks Considered Harmful…)
- From: Philip Aker <email@hidden>
- Date: Sat, 20 Dec 2008 08:40:16 -0800
On 2008-12-20, at 06:43:26, Philip Aker wrote:
A couple of corrections:
3. While I do appreciate the sheer relief of the new calls
OSACopyDisplayString() and OSACopySourceString(), the use of a
CFAttributedStringRef entails a leap of two levels up to CoreText to
get anything other than than CFAttributedStringCreate(). It seems
unlikely that CoreText will be made multi-platform capable to the
extent that CoreFoundation is so I suggest that the use of an
OSAAttributedStringRef be an alternate. This will be a minimal style
specification easily mapped to native facilities for implementors
who must necessarily integrate with the higher level OS facilities.
I think there would be only kOSATextAttributeFontFamily,
kOSATextAttributeFontSize, kOSATextAttributeBold,
kOSATextAttributeItalic, kOSATextAttributeNormal, and
kOSATextAttributeCFRange keys in an array of dictionaries associated
with the script text.
Add kOSATextAttributeColor to the keys.
... how the Apple Event Object Model can subsume huge portions of
XML without working up a sweat ...
You'll have to tell me more about that. I'm not sure what you mean.
I mean that the analogy for an XML element's attributes is expressed
in the Apple Event Object Model as a class's property. But a
property can be complex in AEOM (i.e. the equivalent of an XML
element) whereas it's limited to simpleTypes in XML <http://www.w3.org/TR/xmlschema-2/#rf-defn
>. Furthermore AEOM has more integrity in that queries are formatted
in terms of its own model whereas the analogous facility for XML is
in XPath (which is not a declarative language).
Better stated as:
whereas the analogous facility for XML is in XPath (which is not an
XML expression).
The incredibly huge chagrin for Apple here is that it's failed to
realize the superiority of the design. Because of that, there's now
about a zillion developers working on the many facets of XML to
bring it to international manifestation and dominance and only about
1 working on AEOM.
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden