View Full Version : applescript to copy an OmniGraffle graphic?
supertwang
2011-12-07, 03:44 AM
Can anyone show me an example of an applescript that copies an existing graphic to a new canvas?
Thanks!
ST
RobTrew
2011-12-08, 12:35 AM
tell application id "OGfl"
set lstSeln to (selection of front window)
set oShape to first item of lstSeln
tell front document
duplicate oShape to end of graphics of canvas 2
end tell
end tell
RobTrew
2011-12-08, 12:37 AM
or, of course
tell application id "OGfl"
set lstSeln to (selection of front window)
set oShape to first item of lstSeln
tell front document
set oSecondCanvas to make new canvas
duplicate oShape to end of graphics of oSecondCanvas
end tell
end tell
tuvanxaydung
2011-12-08, 09:56 PM
I also tried doing this but do not have any result, I have encountered some technical problems
vBulletin® v3.8.7, Copyright ©2000-2024, vBulletin Solutions, Inc.