• 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: Apply style in AppleWorks 5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apply style in AppleWorks 5


  • Subject: Re: Apply style in AppleWorks 5
  • From: "Jason W. Bruce" <email@hidden>
  • Date: Thu, 09 Nov 2000 10:18:09 -0600

Peter,

I no longer am using Appleworks 5, but the following works in AppleWorks 6:

tell application "AppleWorks 6"
set paragraph style of paragraph 1 of text body of document 1 to "Your User
Defined Style"
end tell

Because AppleWorks documents can contain multiple frames (spreadsheet, draw,
etc.), a script must specify the frame to which it is targeted -- thus the
need to use "text body" to refer to the text portion of a word processing
document. In addition, document 1 always refers to the frontmost document.
You may know that some things which don't work in AppleWorks 5 now work in
AppleWorks 6.

Jason Bruce

----------
> Date: Tue, 07 Nov 2000 17:15:09 +0100
> From: peter vrijlandt <email@hidden>
> Subject: Apply style in AppleWorks 5
> To: email@hidden
> Reply-to: email@hidden
> Organization: wu
>
> I am trying to apply a user defined style in AppleWorks in an script by:
>
> tell application "AppleWorks"
> apply "Heading 1" to text of selection -- or: to text of paragraph 1
> of document 1
> end tell
>
> ("Heading 1" is the name of a user defined basic style)
> It is not working.
> Can anyone tell me how to do this?
>
> Peter Vrijlandt
> Wageningen
> The Netherlands


  • Prev by Date: Re: Maintaining large website / finding many files
  • Next by Date: Excel Problems
  • Previous by thread: Apply style in AppleWorks 5
  • Next by thread: Read/Write Excel files
  • Index(es):
    • Date
    • Thread