The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniGraffle > OmniGraffle Extras
FAQ Members List Calendar Search Today's Posts Mark Forums Read

How do I iterate over ALL shapes in a canvas? Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
I'm trying:
tell application "OmniGraffle Professional 4"
tell canvas of front window
repeat with obj in graphics
blah blah do something
end repeat
end tell
end tell
but am finding that objects disappear from the graphics list when they have been grouped. I'm not good enough at Applescript or Omnigraffle to figure out how to dive into all of the groups. Can anyone help me?

A lot of the scripts from the community I am reading use

repeat with obj in selection

but I am trying to find items that I've previously drawn via AppleScript (in order to connect them later with lines). Sure wish Applescript had an associative dictionary, but, I'm looking for a brute-force search for an item that I've tagged with a string, to suffice.

Thanks for any help anyone can provide in deep-iterating over all of the shapes in a canvas (grouped or ungrouped).


Last edited by; 2007-07-26 at 06:04 PM..

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Order of creating shapes within a tell canvas gshenaut OmniGraffle General 4 2013-02-27 07:09 AM
Custom shapes in shapes inspector sunshine OmniGraffle General 4 2009-02-27 07:54 AM
Using ScriptingBridge to iterate tasks in the right pane ksenia OmniFocus Extras 2 2008-06-24 08:36 AM
Linking Master Canvas items with child canvas layers relaxedguy OmniGraffle General 1 2007-12-11 04:15 PM
Applying master canvas to canvas dynamically draupp OmniGraffle Extras 1 2007-08-20 11:10 AM

All times are GMT -8. The time now is 08:08 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2023, vBulletin Solutions, Inc.