Re: How does Applescript recognize grouped images in Omnigraffle?

Daria Shmaria <[email protected]>
Newsgroups gmane.comp.graphics.omnigraffle.user
Message-ID <[email protected]>
Thanks for responding, John!

By "selecting each group," I meant that I wanted to select every group of
images in a file, one group at a time, to perform some actions (like
copying) on each group individually.

Are groups indexed separately from other graphics?
The list of groups returned by the code you wrote refers to them as graphics.

On Tue, Jul 28, 2009 at 3:51 PM, John Gersh <[email protected]> wrote:

> I'm not sure if this is what you mean by "selecting each group," but you
> can
> get a list of all the groups with:
>
> tell application "OmniGraffle Professional 5"
>    set allGroups to {}
>    repeat with theCanvas in every canvas of the first document
>        repeat with theLayer in theCanvas
>            set allGroups to allGroups & every group in theLayer
>        end repeat
>    end repeat
>    return allGroups
> end tell
>
>
> - John Gersh
>
>
>
> On 7/28/09 12:54 PM, "Daria Shmaria" <[email protected]> wrote:
>
> >
> > I want to write a script selecting each group in each layer of each
> canvas of
> > a given Omnigraffle file, but I'm not sure how Applescript recognizes
> > grouped images or how the groups are ordered/indexed in the file. Any
> > suggestions on how to do this would be greatly appreciated.
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.