• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AppleWorks formatting and Glossary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: AppleWorks formatting and Glossary (was: Intro and Can this be done?) (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: File or Alias?
  • Next by Date: Re: Fetch's Initial Dialogue Box
  • Previous by thread: Re: AppleWorks formatting and Glossary (was: Intro and Can this be done?)
  • Next by thread: Re: AppleWorks formatting and Glossary (was: Intro and Can this bedone?)
  • Index(es):
    • Date
    • Thread