Re: Set type preferences in InDesign
Re: Set type preferences in InDesign
- Subject: Re: Set type preferences in InDesign
- From: Stan Cleveland <email@hidden>
- Date: Thu, 17 Nov 2005 10:59:01 -0800
- Thread-topic: Set type preferences in InDesign
On 11/17/05 7:13 AM, Steve Suranie <email@hidden> wrote:
> I'm thinking I have to do a find and replace in ID once I change the
> preference to get all quotes changed. Does anyone have a different
> suggestion?
You are correct, IMHO.
> I've tried finding and replacing the smart quotes by using ASCII characters
> and AS but the script doesn't ever seem to pick them up.
Here's some code to find and replace every occurrence of inch and foot marks
with double and single quotes (or apostrophes) throughout an entire InDesign
document.
tell application "InDesign CS"
set typographers quotes of text preferences of document 1 to true
repeat with aMark in {"'", "\""}
try
set charList to (object reference of characters ¬
of text frames of document 1 whose contents is aMark)
set markFound to true
on error number -1728
-- mark not found in document, so skip it
set markFound to false
end try
if markFound then
repeat with thisChar in charList
tell thisChar
set (text of text 1 where it is aMark) to aMark
end tell
end repeat
end if
end repeat
end tell
Hope this helps!
--
Stan Cleveland <email@hidden>
Color Technology Inc., Portland, Oregon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden