View Single Post
Quote:
Originally Posted by Joel View Post
The following should work:

{user data: {foo: "bar"},

Put that in the properties in your script and you should be good to go.
Thanks Joel.

I wasn't sure about exactly where you meant I should put the braces, but I tried this and it didn't seem to have an effect (the blue text is what I have added: I am passing a string in as the id in this case, and want that to be the value for a key called "termId").

I would really like to have a bit more control over the shapes and layout as I create them - is there somewhere I can read the documentation for how to call things like Orthogonal line types, fill colours for shapes, drop shadows, layout types and so on?

AppleScript snippet:
return make new shape at end of graphics with properties {text:aTitle, url:aUrl, user data:{termId:aId}, vertical padding:5, autosizing:full, side padding:10, magnets:{{0.5, 0}, {-0.5, 0}, {0, 0.5}, {0, -0.5}}, origin:{(x of canvasSize) / 2.0, (y of canvasSize) / 2.0}}


Ian.
--