• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Or TextEdit? [WAS: Re: Scripting Mail.app]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Or TextEdit? [WAS: Re: Scripting Mail.app] (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: [OS X] Scripting Internet Connect
  • Next by Date: Illustrator question
  • Previous by thread: Or TextEdit? [WAS: Re: Scripting Mail.app]
  • Next by thread: Renaming Picture 1
  • Index(es):
    • Date
    • Thread