• 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: Newbie needs help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie needs help


  • Subject: Re: Newbie needs help
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 04 Oct 2008 08:54:10 +1000
  • Thread-topic: Newbie needs help

On 4/10/08 6:36 AM, "Rosemary Cantrell" <email@hidden> wrote:

> Goal is to have InDesign check a specific layer to see if any objects
> (type or graphic) have the fill color of "IMPRINT".  If it does then a
> dialog results with item(s) selected that says "Imprinting is on this
> layer" if none is found then a dialog could say "No imprinting found
> on this layer".

Try something like this:

tell application "Adobe InDesign CS3"
    tell document 1
        set myLayer to layer 1 "Layer name"
        set myColor to color "IMPRINT"
        set theItems to (every item of all page items whose fill color is
myColor and item layer is myLayer)
        if theItems = {} then
            display dialog "No imprinting found on this layer"
        else
            display dialog "Imprinting is on this layer"
        end if
    end tell
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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Newbie needs help (From: "Rosemary Cantrell" <email@hidden>)

  • Prev by Date: Keynote
  • Next by Date: Preference Pane in AppleScript possible?
  • Previous by thread: Newbie needs help
  • Next by thread: Keynote
  • Index(es):
    • Date
    • Thread