• 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 (was: Intro and Can this bedone?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: parent properties - limited access inside child's handlers?
  • Next by Date: Re: AppleWorks formatting and Glossary (was: Intro and Can this bedone?)
  • Previous by thread: Re: AppleWorks formatting and Glossary
  • Next by thread: Re: AppleWorks formatting and Glossary (was: Intro and Can this bedone?)
  • Index(es):
    • Date
    • Thread