TextEdit and Text Item Delimiters
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.