Re: path to as string
Re: path to as string
- Subject: Re: path to as string
- From: has <email@hidden>
- Date: Sun, 26 Jun 2005 01:05:28 +0100
Paul Berkowitz wrote:
>In some recent release notes, we're told that typeText, which I gather is
>plain text, is being deprecated, whereas styled text and international text
>are not being deprecated, just not "recommended".
<http://www.apple.com/applescript/releasenotes/192OSX.html>
<http://developer.apple.com/documentation/Carbon/Reference/Apple_Event_Manager/apple_event_manager_ref/chapter_1.4_section_96.html>
A couple of thoughts:
It does seem odd that styled text and international text aren't straight out deprecated. Like typeText, they can't go away completely while there are still older applications around that use them, but I don't see any reason why they couldn't be deprecated now.
The more I think about it, the more I'm disturbed by the deprecation of typeText in the Apple Event Manager API [1]. At the very least, it's way too premature. While typeText is a poor choice/downright unsuitable for encoding human-readable text - and anyone still using it this way should be spanked - character strings are also very commonly used to hold binary data (e.g. zip-encoded data). While this may not be an ideal practice - it'd be better to have a dedicated (but still interchangeable) typeByte provided for this purpose - it's not one that's going away any time soon, and typeUnicodeText really isn't a suitable alternative here. I think the disappearance of typeText from AEM will be shooting everyone in the foot (i.e. not just AppleScripters, but everyone who uses Apple events), but what's the opinion of the professional programmers here?
has
[1] Personally I really don't care that much what AppleScript does. Though FWIW I think that overall a move to Unicode text only is probably the right thing to do as far as users are concerned.
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden