• 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: InDesign CS4 Script Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InDesign CS4 Script Question


  • Subject: Re: InDesign CS4 Script Question
  • From: Stan Cleveland <email@hidden>
  • Date: Wed, 15 Sep 2010 15:53:43 -0700

On Sep 14, 2010, at 11:25 AM, Rosemary Cantrell wrote:

> I'm in InDesign CS4 and need to search the document for anywhere the
> specific spot color swatch "IMPRINT" is used and set whatever is
> assigned that color the attribute to overprint both fill and stroke
> (if used).
>
> I'm buried at the moment so it's difficult to for me to do my normal
> trial and error script writing.  (I'm pretty low on the "get it" scale
> for scripting).

Hi Rosie,

Give this a try:

tell application "Adobe InDesign CS4"
	set clr to swatch "IMPRINT" of document 1
	tell document 1
		tell (page items whose fill color is clr)
			set properties to {overprint fill:true, overprint stroke:true}
		end tell
		tell (text of stories whose fill color is clr)
			set properties to {overprint fill:true, overprint stroke:true}
		end tell
	end tell
end tell

I've not done much testing, but predict that it will error if nothing is filled with "IMPRINT".

HTH,
Stan C.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >InDesign CS4 Script Question (From: Rosemary Cantrell <email@hidden>)

  • Prev by Date: Re: Illustrator CS4 hierarchical menus
  • Next by Date: Re: Illustrator CS4 hierarchical menus
  • Previous by thread: InDesign CS4 Script Question
  • Next by thread: Illustrator CS4 hierarchical menus
  • Index(es):
    • Date
    • Thread