AppleScript Help: Select all children

Gavin Kistner gavin at refinery.com
Wed Apr 30 07:43:00 PDT 2003


On Monday, April 28, 2003, at 05:53 PM, Greg Titus wrote:
> I apologize. You've run into a bug in OmniGraffle's AppleScript 
> support. I'm fixing it now and it will be in our next release.

Bummer/cool :)

> This is failing because a document doesn't have layers, a page has 
> layers. This should work:
> 	the count of graphics of the first layer of the first page of the 
> first document

Er, oops. So much for my handy AS classes reference helping me learn :)


> Also note that this script doesn't attempt to do any checking that you 
> really do have a tree structure. If you ran it on a graph that had 
> loops in it it would run forever, until you cancelled it. Making a 
> script that handled loops would certainly be possible, just a bit more 
> complicated than this one.

Ooh, good point. Infinite recursion would be bad :)

Thanks for the prompt answers!

--
Gavin Kistner @ Refinery, Inc.
gavin at refinery.com
work: +1.303.444.1777
cell: +1.303.641.1521




More information about the OmniGraffle-Users mailing list