Punctuation in Applescript's Text Item Delimiters
Punctuation in Applescript's Text Item Delimiters
- Subject: Punctuation in Applescript's Text Item Delimiters
- From: Jay Young <email@hidden>
- Date: Fri, 11 Jan 2002 21:02:04 -0600
Does anyone know if it is possible to grab punctuation characters in
applescript's text item delimiters when the punctuation is the last
character alone? Here's an example:
Today (tab) is (tab) Friday (tab) ? (return)
--script
set Applescript's text item delimiters to tab
tell app "QuarkXPress 4.11"
tell story 1 of text box 1 of document 1
try
set para1 to paragraph 1
set paraitm to text items of para1
set paragraph 2 to text item 4 of paraitm --trying to grab the question
mark
end try
end tell --story 1
end tell --Quark
set Applescripts text item delimiters to ""
The only way I can get the question mark to flow out into paragraph 2 is
if I add a text character after it. Is there any other possibilities?
Thanks for your help.
Jay