• 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: TextEdit, is it really that lame?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TextEdit, is it really that lame?


  • Subject: Re: TextEdit, is it really that lame?
  • From: Bill Briggs <email@hidden>
  • Date: Wed, 8 Mar 2006 08:46:28 -0400

At 8:33 PM +0800 3/8/06, bill wrote:
>>>>>It appears that the only way to get a new paragraph in a TextEdit
>>>>>document is to put in a slug of text with a return in it. Is this
>>>>>thing really that lame?
>
>May you try this one:
>
>tell application "TextEdit"
>  tell document 1
>    set text 1 to "Hello, the first paragraph." & return
>      -- method 1
>      make new paragraph at end of text 1 with data "Well, it's the second paragraph." & return
>      -- yet another method
>      set text 1 to text 1 & "Alors, one more paragraph." & return
>    end tell
>end tell

 You're on crack, right?  Firstly, there are NOT two methods in your post. There's one. Each and every time you "make a new paragraph" it's because you've explicitly put in a return in the text. You have just concatenated it into the preceding text instead of having it between the quote marks from the outset, but it's precisely the same thing (what made you think otherwise).

 The point, which you seem to have missed, is that "make new paragraph" doesn't make a new paragraph. It's impotent, flaccid, bereft of function. You "made" the next paragraph by putting in the return, not with the "make new paragraph" statement. If you want to see how AppleScript was intended to work, fire up Tex-Edit Plus and try it.

- web
 _______________________________________________
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

References: 
 >Re: TextEdit, is it really that lame? (From: bill <email@hidden>)

  • Prev by Date: Re: TextEdit, is it really that lame?
  • Next by Date: Re: International Folder names in applet bundles
  • Previous by thread: Re: TextEdit, is it really that lame?
  • Next by thread: Re: TextEdit, is it really that lame?
  • Index(es):
    • Date
    • Thread