Re: AppleWorks formatting and Glossary (was: Intro and Can this bedone?)
Re: AppleWorks formatting and Glossary (was: Intro and Can this bedone?)
- Subject: Re: AppleWorks formatting and Glossary (was: Intro and Can this bedone?)
- From: Chris Nebel <email@hidden>
- Date: Fri, 02 Feb 2001 21:04:35 -0800
- Organization: Apple Computer, Inc.
Michelle Steiner wrote:
>
On 2/1/01 8:24 PM, T&B <email@hidden> wrote:
>
>
>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?
It works great with AW 6, and leads to the following one-liner to solve
the original problem:
tell document 1 of application "AppleWorks 6" to set properties of every
word whose style is {on styles:italic} to {style:{on styles:{bold}, off
styles:{italic}}, color:{65535, 0, 0}}
I *love* whose clauses!
--Chris Nebel
AppleScript Engineering