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

 
Understanding Applescript Dictionary Thread Tools Search this Thread Display Modes
Hi,

This is a bit of a newbie question, but I hope you will forgive me.
I'm trying to draw a line in Omnigraffle using Applescript.
I've done this fine, but I can't work out how to set the "head type" to be an arrow.

I've reviewed the dictionary to find out that the property is "head type", but I can't find out what values I'm allowed to set it to! By trial and error, I've produced the following:

make new line with properties {head type:point, head scale:1.0, stroke cap:butt, corner radius:0, thickness:2, line type:straight, weight:3, stroke color:colour, point list:{{startX, startY}, {endX, endY}}}

I'd like to know a) what values I can set "head type" to and b) where you found out!

Thanks in advance,

Tom
 
I have solved part a "FilledArrow" but as I looked this up in someones script, I don't know where to find the answer to part b yet!
 
The easiest way I've found is to draw the type of object I want directly in Graffle and then copy as AppleScript and paste into TextEdit, Script Editor, or wherever.
To do this, select your object(s). Then choose "Copy As" from the Edit menu and "AppleScript" from the sub-menu that pops out.
Obviously, this is more a trial-error approach than an exhaustive list, but if you know what you want, it's not _too_ bad.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applescript: which shape properties can be set via a dictionary? Sophie OmniGraffle General 4 2012-11-23 09:17 AM
Omni dictionary for Android mlmsf OmniDictionary 1 2012-04-24 04:17 PM
applescript dictionary version jamesafoster OmniFocus Extras 1 2009-10-29 02:46 AM
Look up in dictionary not working macleon OmniWeb General 6 2009-10-21 08:58 AM
OS X dictionary integration. mischivo OmniWeb Feature Requests 29 2006-05-11 04:55 PM


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


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