Re: Set type preferences in InDesign
Re: Set type preferences in InDesign
- Subject: Re: Set type preferences in InDesign
- From: Shane Stanley <email@hidden>
- Date: Fri, 18 Nov 2005 08:57:48 +1100
- Thread-topic: Set type preferences in InDesign
On 18/11/05 5:59 AM, "Stan Cleveland" <email@hidden> wrote:
> set charList to (object reference of characters ¬
> of text frames of document 1 whose contents is aMark)
That works OK, but tends to be considerably slower than using the search
command, especially for longer documents. Here's a variation using search:
tell application "InDesign CS"
set find preferences to nothing
set change preferences to nothing
set typographers quotes of text preferences of document 1 to true
repeat with aMark in {"'", "\""}
set charList to (search document 1 for aMark)
repeat with i from 1 to count of charList
set contents of item i of charList to aMark
end repeat
end repeat
end tell
--
Shane Stanley <email@hidden>
_______________________________________________
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