Re: AppleWorks formatting and Glossary
Re: AppleWorks formatting and Glossary
- Subject: Re: AppleWorks formatting and Glossary
- From: T&B <email@hidden>
- Date: Sat, 03 Feb 2001 02:22:07 +1100
tell application "AppleWorks 6"
tell text body of front document
get every word whose style is {on styles: italic}
end tell
end tell
this does not work with AW 5; have you tested it with AW 6?
I write that script for AppleWorks 6, thus the "AppleWorks 6".
AppleWorks 5 has problems with whose clauses and elements within elements in text, but the result can be achieved, such as:
tell application "AppleWorks"
set wordList to {}
tell text body of front document
repeat with wordN from 1 to count every word
get style of word wordN
if on styles of result contains {italic} then
set end of wordList to word wordN as text
end if
end repeat
end tell
end tell
get wordList
More on problems of AppleWorks 5 (and 6) scripting at:
http://www.tandb.com.au/appleworks/problems/
Tom
T&B