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 > Developer > AppleScripting Omni Apps
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Getting Groups from Graffle Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Aargh. What am I doing wrong???

I have nested groups in an OmniGraffle document. The following code (and many variations thereof):

tell application "OmniGraffle Professional 5"
tell front document
tell canvas 1
set group_list to every group --gets top-level groups only?

repeat with a_group in group_list
set subgroup_list to {}
tell a_group to set subgroup_list to its every group
display dialog subgroup_list as text
end repeat

end tell
end tell
end tell

tells me that the variable subgroup_list is not defined.
At the very least, shouldn't it be defined as an empty list? (The "set subgroup_list to {}" line was a desperation measure that shouldn't be needed.)

More importantly, why is it not finding the subgroups in my groups?
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing .graffle files into a .graffle document gshenaut OmniGraffle General 0 2013-03-20 04:09 PM
Graffle shrinking pandrus OmniGraffle General 0 2012-02-21 09:25 AM
Gliffy to Graffle? Any way possible? markfrancombe OmniGraffle General 0 2011-01-10 06:29 AM
outliner to graffle korczowski OmniGraffle General 1 2008-07-11 01:01 PM
Omni Graffle, and new Macbook Pro ericc2222 OmniGraffle General 1 2006-11-27 12:20 PM


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


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