Re: Replace all attributes font in a quark document.
Re: Replace all attributes font in a quark document.
- Subject: Re: Replace all attributes font in a quark document.
- From: "John D. Hopkins" <email@hidden>
- Date: Tue, 12 Jun 2001 11:05:30 -0600
Try this:
tell application "QuarkXPress Passport* 4.11"
activate
tell document 1
repeat with i from 1 to number of stories
tell story i
if exists (text style ranges where font is "Times" and (style contains italic and style contains bold)) then
set (properties of every text style range where font is "Times" and (style contains italic and style contains bold)) to {font:"BI Times BoldItalic", style:plain}
end if
end tell
end repeat
end tell
end tell
John D. Hopkins
>
>> Olivier Berquin <email@hidden> - 6/12/01 6:51 AM >>>
Hello,
How can I change all the Times'font in italic by the I Times Italic in a
quark document?
I've a document with +/- 80 pages. I use this script but it's so slowly.
tell application "QuarkXPress Passport 4.11"
activate
tell document 1
repeat with x from 1 to count of pages
tell page x
repeat with y from 1 to count of text boxes
tell text box y
repeat with py from 1 to count of paragraphs
try
set (properties of every text style range
where font is "Times" and (style is italic and style is bold)) to {font:"BI
Times BoldItalic", style:plain}
end try
end repeat
end tell
end repeat
end tell
end repeat
end tell
end tell
I try this but... No result
tell application "QuarkXPress Passport 4.11"
tell document 1
try
set properties of every text of every story where ,
font is "Times" and (style is italic) to ,
{font:"I Times Italic", style:plain}
end try
end tell
end tell
Any idea ?
_______________________________________________
applescript-users mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/applescript-users