The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraffle General (http://forums.omnigroup.com/forumdisplay.php?f=10)
-   -   Trying to draw labeled arrow with Applescript (http://forums.omnigroup.com/showthread.php?t=6837)

dnerf 2008-01-18 02:34 PM

Trying to draw labeled arrow with Applescript
 
In OmniGraffle 3.2.4 the following script gets NSInternalScriptError when it gets to "make new label..."

Can anyone give me a clue?


tell application "OmniGraffle"
tell front window
tell page 1
set theLine to make new line at beginning of graphics with properties {head type:"FilledArrow", point list:{{0.0, 0.0}, {100.0, 100.0}}}
tell theLine
make new label with properties {text:"My Label"}
end tell
end tell
end tell
end tell

Richard


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

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