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 Today's Posts

 
problem: copy as applescript | osascript - Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
So, I draw a shape in Omnigraffle Pro (in this case a simple text box), and then select Save as applescript from the menu. I get the following results with osascript:

Code:
$ pbpaste | osascript -
131:138: syntax error: Expected “,” or “}” but found identifier. (-2741)
And here is a typical applescript, directly from pbpaste:
Code:
tell application "OmniGraffle Professional"
	tell canvas of front window
		make new shape at end of graphics with properties {side padding: 0, fill: no fill, draws stroke: false, draws shadow: false, autosizing: full, size: {20.000000, 14.000000}, text: {text: "abc", alignment: right, text: "abc"}, origin: {69.000000, 132.000000}, vertical padding: 0}
	end tell
end tell
This also happens with other shapes such as lines, rectangles, etc. What am I doing wrong?
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
applescript to copy an OmniGraffle graphic? supertwang AppleScripting Omni Apps 3 2011-12-08 09:56 PM
Copy and Paste Problem Bryan Applying OmniFocus 1 2010-11-08 08:16 PM
Glitch in: Edit > Copy As > AppleScript RobTrew OmniGraffle General 0 2010-04-15 08:11 AM
Weird copy/paste problem 2 wayne4 OmniFocus 1 for Mac 4 2008-10-31 03:01 PM
Weird copy/paste problem bbell2000 OmniFocus 1 for Mac 3 2008-10-30 01:52 PM


All times are GMT -8. The time now is 11:04 PM.


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