Re: Newbie needs help
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