Re: Styles in AppleWorks??
Re: Styles in AppleWorks??
- Subject: Re: Styles in AppleWorks??
- From: "Jason W. Bruce" <email@hidden>
- Date: Mon, 19 Feb 2001 13:58:49 +0000
Harold,
I'm not sure how to do this in an AppleWorks spreadsheet, but here is how
you do it in an AppleWorks word processing document. On Styles and Off
Styles are record labels which take lists as their values.
tell application "AppleWorks 6"
set style of paragraph 1 of text body of document 1 to {on
styles:{bold}}
end tell
Jason Bruce
>
Message: 16
>
Date: Sun, 18 Feb 2001 18:34:00 +0100
>
To: email@hidden
>
From: Harald E Brandt <email@hidden>
>
Subject: Styles in AppleWorks??
>
>
How can I set styles on text in Appleworks word or spreadsheet documents?
>
>
This does NOT work:
>
For word proc: set on styles of style of word 1 to {bold}
>
For spreadsheets: set on styles of style of cell 1 in row 1 to {bold}
>
>
Why?
>
The following lists what works and not works:
>
>
tell application "AppleWorks 6"
>
tell front document
>
--word processing:
>
get on styles of style of word 1 --OK => {plain}
>
set on styles of style of word 1 to {plain} --does NOT work!!??
>
select menu item "Bold" of menu "Style" --does NOT work!!??
>
select menu item "Bold" of menu "Format" --does NOT work!!??
>
--Spreadsheets:
>
get on styles of style of cell 1 in row 1 --OK for spreadsheet => {plain}
>
set on styles of style of cell 1 in row 1 to {plain} --does NOT work!!??
>
end tell
>
end tell
>
>
>
With hopes for help,
>
______heb________________________________________________________________
>
Harald E Brandt email@hidden PGP/MIME aware http://heb.surf.to
>
>
>
--__--__--