The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraffle General (http://forums.omnigroup.com/forumdisplay.php?f=10)
-   -   AppleScript - How to Operate on Group of Selected Graphic Objects? (http://forums.omnigroup.com/showthread.php?t=21901)

trouble clef 2011-08-17 06:02 AM

AppleScript - How to Operate on Group of Selected Graphic Objects?
 
What is the syntax to operate on a group of selected objects?


[CODE]tell application "OmniGraffle Professional 5"
tell canvas of front window

-- somehow set selection?
repeat with thisGraphic in every graphic -- with however a selection is specified
tell thisGraphic
-- do whatever is needed
end tell
end repeat
end tell
end tell
[/CODE]

Any clues?

RobTrew 2011-08-17 06:24 AM

[CODE]tell application id "OGfl"
tell front window
repeat with oShape in (selection as list)
-- do sth to oShape
end repeat
end tell
end tell[/CODE]


All times are GMT -8. The time now is 01:58 AM.

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