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

TextEdit and Text Item Delimiters


  • Subject: TextEdit and Text Item Delimiters
  • From: email@hidden
  • Date: Wed, 31 Jul 2002 13:35:18 -0700

Another TextEdit question (pity the newbie):

Does TextEdit not understand Text Item Delimiters? Given a TextEdit
document containing the following:
foo=bar
sna=foo
bar=pub
kung=foo
I try:
tell app "TextEdit"
set AppleScript's text item delimiters to {"="}
set keyParagraph to (first paragraph whose first text item is
"foo") of document 1
end tell

and AppleScript pops up with a NSCannotCreateScriptCommandError.

So can TextEdit just not do this? What's a work-around that I could use?

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Seth A. Roby
Scriptwriter Intern
"Life is like an exploded clown. It's really funny until you figure out
what just happened."
_______________________________________________
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.

  • Follow-Ups:
    • Re: TextEdit and Text Item Delimiters
      • From: Paul Berkowitz <email@hidden>
    • Re: TextEdit and Text Item Delimiters
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: duplicate file with number
  • Next by Date: Re: Write to file??
  • Previous by thread: Re: Filter References and TextEdit
  • Next by thread: Re: TextEdit and Text Item Delimiters
  • Index(es):
    • Date
    • Thread