Quark-bold uppercase paragraphs
Quark-bold uppercase paragraphs
- Subject: Quark-bold uppercase paragraphs
- From: Jeremy Sellors <email@hidden>
- Date: Sat, 11 Aug 2001 19:16:25 -0700
Hi,
I need to set the style of capitalized heading paragraphs to bold in Quark.
tell application "QuarkXPress 4.11"
activate
tell document 1
tell automatic text box
try
delete (every paragraph of story 1 whose contents is "")
-- here I need to set the text style to plain as it arrives in bold.
end try
tell story 1
set paraList to every paragraph as list
repeat with i in paraList
**if ASCII number every character of i is not lowercase
(< 97 and <122) then
**set every character to {style:bold}
end if
end repeat
end tell
end tell
end tell
end tell
I suppose creating a paragraph style would be simplest but I cannot get the
make new style to work
if not (style spec "Name Overlay Style" exists) then
make new style spec at end with properties {name:"Name Overlay
Style", base style:null, etc.,
errors out with can't make some data into expected type.
Any help would be appreciated.
Jeremy Sellors