The result of
tell application "QuarkXPress Passport"
make new document
tell front document
make new text box at beginning with properties {bounds:{"10 mm", "10 mm", "200 mm", "200 mm"}}
set story 1 to "Some words of this text |are| surrounded by pipes."
words of story 1
end tell
end tell
is {“Some”, “words”, “of”, “this”, “text”, “are”, “surrounded”, “by”, “pipes.”}
How can I do to get {“Some”, “words”, “of”, “this”, “text”, “|are|”, “surrounded”, “by”, “pipes.”}
My concept is that a word is somethiing surrounded by spaces.
It seems that for Quark the meanning of word is a set of numbers or letters surrounded by any thing not numbers or letters.
And Applescript thinks different:
The result of
words of "Some words of this text |are| surrounded by pipes."
is {“Some”, “words”, “of”, “this”, “text”, “|”, “are”, “|”, “surrounded”, “by”, “pipes”}
So… What is a word ???
Some idea? Thanks in advance.