Glitch in: Edit > Copy As > AppleScript
[B]Edit > Copy As > AppleScript[/B] 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: [CODE]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[/CODE] The first line of which seems to be incorrect: [CODE]tell application "OmniGraffle Professional"[/CODE] fails on my system, and requires manual amendment to: [CODE]tell application "OmniGraffle Professional 5"[/CODE] OR more durably, and in accordance with Apple's current guidelines: [CODE]tell application [B]id[/B] "com.omnigroup.OmniGrafflePro"[/CODE] (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) [COLOR="White"]--[/COLOR] |
All times are GMT -8. The time now is 02:48 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.