Re: Or TextEdit? [WAS: Re: Scripting Mail.app]
Re: Or TextEdit? [WAS: Re: Scripting Mail.app]
- Subject: Re: Or TextEdit? [WAS: Re: Scripting Mail.app]
- From: Christopher Nebel <email@hidden>
- Date: Mon, 21 Jan 2002 17:04:19 -0800
On Monday, January 21, 2002, at 01:35 PM, Paul Berkowitz wrote:
On 1/21/02 1:04 PM, "J.B. Stewart" <email@hidden> wrote:
Has anyone had any success opening downloaded emails in the Mail.app?
The following doesn't seem to work.
TextEdit is rather comical. It supposedly implements the Text Suite
and a
bit more, but how do you get at the content of a document?
The "text" of a TextEdit document isn't an element, it's a property.
For example:
get text of document 1 -- entire contents.
get paragraph 1 of text of document 1 -- just paragraph 1.
Yes, I know the dictionary is wrong. Yes, I know this isn't exactly
normal. They're supposedly fixing it.
Using the read/write scripting addition works just fine on .txt files. I
haven't dared try it with .rtf files yet. I suspect that won't work so
well.
It works great as long as you're expecting to see the raw rtf code.
AppleScript, with its Mac OS 9/Carbon background, doesn't understand rtf
at all yet.
--Chris Nebel
AppleScript Engineering