Re: INDESIGN: Determining Transparency
Re: INDESIGN: Determining Transparency
- Subject: Re: INDESIGN: Determining Transparency
- From: Rick Gordon <email@hidden>
- Date: Tue, 12 Aug 2008 15:27:19 -0700
Actually nope. There's something about it that's causing transparencies to be missed -- and I've got to go elsewhere -- so I'll have to rethink it another day.
Rick Gordon
------------------
On 8/12/08 at 10:14 AM -0700, Rick Gordon wrote in a message entitled
"Re: INDESIGN: Determining Transparency":
>Then I guess something like this is required to do what I want (in this case, returning the page number of the text frames of concern). Is there a better way to get the page number than what I've done toward the bottom, without having to just dive through groups to some arbitrary level to get at it?
>
>--
>
>set vResultList to {}
>tell application "Adobe InDesign CS3"
> tell active document
> set vTextFrames to text frames of all page items
> repeat with vEachItem in vTextFrames
> tell vEachItem
> set vTransparency to transparency settings
> set vContentTransparency to content transparency settings
> set vFillTransparency to fill transparency settings
> set vStrokeTransparency to stroke transparency settings
> set vNoTransparency to true
> tell vTransparency
> if (opacity of blending settings is not equal to 100.0 or blend mode of blending settings is not normal) or (mode of drop shadow settings is not none) or (mode of feather settings is not none) or (applied of inner shadow settings is true) or (applied of outer glow settings is true) and (applied of inner glow settings is true) or (applied of bevel and emboss settings is true) or (applied of satin settings is true) or (applied of directional feather settings is true) or (applied of gradient feather settings is true) then
> set vNoTransparency to false
> else
> tell vContentTransparency
> if (opacity of blending settings is not equal to 100.0 or blend mode of blending settings is not normal) or (mode of drop shadow settings is not none) or (mode of feather settings is not none) or (applied of inner shadow settings is true) or (applied of outer glow settings is true) and (applied of inner glow settings is true) or (applied of bevel and emboss settings is true) or (applied of satin settings is true) or (applied of directional feather settings is true) or (applied of gradient feather settings is true) then
> set vNoTransparency to false
> else
> tell vFillTransparency
> if (opacity of blending settings is not equal to 100.0 or blend mode of blending settings is not normal) or (mode of drop shadow settings is not none) or (mode of feather settings is not none) or (applied of inner shadow settings is true) or (applied of outer glow settings is true) and (applied of inner glow settings is true) or (applied of bevel and emboss settings is true) or (applied of satin settings is true) or (applied of directional feather settings is true) or (applied of gradient feather settings is true) then
> set vNoTransparency to false
> else
> tell vStrokeTransparency
> if (opacity of blending settings is not equal to 100.0 or blend mode of blending settings is not normal) or (mode of drop shadow settings is not none) or (mode of feather settings is not none) or (applied of inner shadow settings is true) or (applied of outer glow settings is true) and (applied of inner glow settings is true) or (applied of bevel and emboss settings is true) or (applied of satin settings is true) or (applied of directional feather settings is true) or (applied of gradient feather settings is true) then
> set vNoTransparency to false
> end if
> end tell --vStrokeTransparency
> end if
> end tell --vFillTransparency
> end if
> end tell --vContentTransparency
> end if
> end tell --vTransparency
> if vNoTransparency is false then
> if class of parent is page then
> set end of vResultList to name of parent
> else if class of parent of parent is page then --nested 1 level into group
> set end of vResultList to name of parent of parent
> else if class of parent of parent of parent is page then --nested 2 levels into group
> set end of vResultList to name of parent of parent of parent --page number
> end if
> end if -- vNoTransparency is false
> end tell
> end repeat
> return vResultList
> end tell
>end tell
>
>------------------
>
>On 8/12/08 at 9:24 PM +1000, Shane Stanley wrote in a message entitled
>"Re: INDESIGN: Determining Transparency":
>
>>On 12/8/08 8:38 PM, "Rick Gordon" <email@hidden> wrote:
>>
>>> How can one quickly determine whether an object (say a text frame) contains
>>> transparency, without parsing a whole bunch of individual settings?
>>
>>You can't, sadly.
>>>
>>> What I'm trying to do is notify myself of any text frames in a document that
>>> has transparency, so I can make judgments on whether there may be potential
>>> prepress problems.
>>
>>At least the checkerboard pattern in the Pages panel combined with the
> >Flattener Preview panel make it reasonably simple as a manual process.
--
___________________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________
WWW: http://www.shelterpub.com
_______________________________________________
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