Sending many lines of text to TextEdit window
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