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

Glitch in: Edit > Copy As > AppleScript Thread Tools Search this Thread Display Modes
Edit > Copy As > AppleScript seems to generate non-compiling Applescript code.

For example, selecting a simple shape and choosing
Edit > Copy As > Applescript

Generates (and places in the clipboard) code of the form:

tell application "OmniGraffle Professional"
    tell canvas of front window
        make new shape at end of graphics with properties {name: "RoundRect", textSize: {0.800000, 1.000000}, textPosition: {0.100000, 0.000000}, origin: {87.000000, 125.000000}, size: {163.000000, 303.000000}}
    end tell
end tell

The first line of which seems to be incorrect:

tell application "OmniGraffle Professional"
fails on my system, and requires manual amendment to:

tell application "OmniGraffle Professional 5"
OR more durably, and in accordance with Apple's current guidelines:

tell application id "com.omnigroup.OmniGrafflePro"
(which would have a better chance of generating code reusable in any subsequent OmniGraffle 6, but only works with OS X 10.5 and upwards)

(Logged to ninja feedback)


Last edited by RobTrew; 2010-04-15 at 10:31 AM..

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Object resized after copy as PDF then paste and edit leonardo.c OmniGraffle General 2 2013-07-01 09:48 AM
problem: copy as applescript | osascript - gshenaut OmniGraffle General 7 2013-01-30 02:16 PM
applescript to copy an OmniGraffle graphic? supertwang AppleScripting Omni Apps 3 2011-12-08 09:56 PM
Applescript help: Section copy Automating ptorngaard OmniOutliner 3 for Mac 3 2011-02-01 10:13 PM
Request ability to copy projects, copy actions, add group fernelius OmniFocus for iPhone 0 2009-10-17 06:22 PM

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

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