Re: TextEdit and Text Item Delimiters
Re: TextEdit and Text Item Delimiters
- Subject: Re: TextEdit and Text Item Delimiters
- From: Christopher Nebel <email@hidden>
- Date: Wed, 31 Jul 2002 14:53:34 -0700
On Wednesday, July 31, 2002, at 01:35 PM, email@hidden wrote:
Does TextEdit not understand Text Item Delimiters? ... What's a
work-around that I could use?
As a matter of fact, TextEdit doesn't understand "text item delimiters",
because they're internal to AppleScript itself and you're talking to
TextEdit. What you could do as a workaround is to copy the contents of
the document into an AppleScript variable, do your work, and then copy
the result back like this:
tell application "TextEdit"
set mytext to the text of document 1
-- mangle mytext...
set the text of document 1 to mytext
end
--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.