Re: Deleting empty GRAPHIC rectangle in InDesign CS
Re: Deleting empty GRAPHIC rectangle in InDesign CS
- Subject: Re: Deleting empty GRAPHIC rectangle in InDesign CS
- From: Shane Stanley <email@hidden>
- Date: Wed, 12 Apr 2006 15:22:45 +1000
- Thread-topic: Deleting empty GRAPHIC rectangle in InDesign CS
On 12/4/06 9:47 AM, "Mara Jade Skywalker" <email@hidden>
wrote:
> I've tried almost every variation I can think of around the premise of:
>
> delete (every page item whose contents is "")
>
> But even if I run a script that compiles, nothing happens.
>
> Does anyone know how to isolate items that have a certain property?
You can't directly; the only relevant property (all graphics) can't be used
in a suitable whose clause, as you have found. However, you can use a whose
clause based on a property of an element of a page item. So, for example:
page items where horizontal scale of graphic 1 of it 0
will return a list of page items that contain graphics. Indeed, you don't
even need a whose clause:
parent of all graphics of every page item
But what you want is a list of the empty page items, so you'll need another
step -- set a property of the non-empty page items, and delete all page
items that don't match that property. For example:
set locked of parent of all graphics of page items to true
delete (every page item whose locked is false)
--
Shane Stanley <email@hidden>
AppleScript Pro Sessions NJ May 06 <http://www.scriptingmatters.com/aspro>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden