• 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
Sending many lines of text to TextEdit window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sending many lines of text to TextEdit window


  • Subject: Sending many lines of text to TextEdit window
  • From: "Jan E. Schotsman" <email@hidden>
  • Date: Mon, 14 Sep 2009 16:49:08 +0200

Hello,

I would like to quickly log lots of lines to a TextEdit window.

One problem I noted I have to set the font each time.
For example:


tell application "TextEdit" activate make new document at the beginning of documents set the name of window 1 to "Test window"

	set the text of the front document to ¬
		"The quick brown fox jumped over the lazy dog."
	tell the text of the front document
		set the font to "Courier"
		set the size to 11
	end tell

	(*set curText to text of the front document
	set curText to curText & "Then it sped away."
	set the text of the front document to curText*)

end tell

If the last part is uncommented the font reverts to the default font.
Also this is very slow in case of many lines (calling this script once per line).


How can I speed this up other than by concatenating lines, setting the font once per second only, etc?

Jan E.


_______________________________________________ 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
  • Follow-Ups:
    • Re: Sending many lines of text to TextEdit window
      • From: Philip Aker <email@hidden>
    • Re: Sending many lines of text to TextEdit window
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: File reference problems in Snow Leopard
  • Next by Date: Re: Sending many lines of text to TextEdit window
  • Previous by thread: Re: File reference problems in Snow Leopard
  • Next by thread: Re: Sending many lines of text to TextEdit window
  • Index(es):
    • Date
    • Thread