Re: InDesign CS2: Test graphics for item layer
Re: InDesign CS2: Test graphics for item layer
- Subject: Re: InDesign CS2: Test graphics for item layer
- From: "Stockly, Ed" <email@hidden>
- Date: Fri, 05 Sep 2008 15:46:39 -0700
- Thread-topic: InDesign CS2: Test graphics for item layer
> I got past this challenge by adding "as page item"
Good thinking, layer is a property of page item, so that should work.
> set myGraphics to all graphics of active document as page item
> if (count myGraphics) > 0 then
>
> tell active document
> repeat with i from 1 to count of myGraphics
> if name of item layer of page item i is "Text" then
This may cause other problems though. All graphics can be page items, but
not all page items are graphics. So, if you have a couple text boxes in the
mix, then page item i may not always refer to a graphic.
Maybe, something like
layer of (graphic i as page item)
might work
> My next challenge is figuring out how to delete the content of the
> duplicated graphic. You can't set the content type to unassigned
> unless it doesn't have any content, but I can't figure out how to
> delete the image within the frame.
Try these:
Delete image 1 of graphic i
Set image 1 of graphic i to missing value
If those or similar things don't work, you can get all the properties of the
graphic, delete it, then create a new one with all the same properties but
the image.
HTH,
ES
_______________________________________________
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