• 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 and Text Item Delimiters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >TextEdit and Text Item Delimiters (From: email@hidden)

  • Prev by Date: RE: Dose anyone know.... Attrix Mac P&L
  • Next by Date: RE: Poke a char; next question - insert item in list
  • Previous by thread: TextEdit and Text Item Delimiters
  • Next by thread: Re: TextEdit and Text Item Delimiters
  • Index(es):
    • Date
    • Thread