• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Set type preferences in InDesign
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Set type preferences in InDesign (From: Stan Cleveland <email@hidden>)

  • Prev by Date: Re: Bug help with "choose remote application"
  • Next by Date: Start up, shut down
  • Previous by thread: Re: Set type preferences in InDesign
  • Next by thread: Re: Bug help with "choose remote application"
  • Index(es):
    • Date
    • Thread