Hi All,
I develop one applescript to find whether the last word in each page is hyphenated word or not. I am able to find the last word in each page. But I find it difficult to decide whether the selected word is a hyphenated word or not.
My script is:
tell application "QuarkXPress"
activate
tell document 1
set cc to count of page
display dialog cc as string
repeat with i from 1 to cc
tell page i
tell text box 1
set last_word to last word
-----------------------
-- Here I want to find whether the last_word is a hyphenated word or not
----------------------
end tell
end tell
end repeat
end tell
end tell
Could any one help on this.
Thanks,
Gopal