Hi,
I've been working on a script to write values into the key/value user data dictionary available with shapes in the Pro version of OmniGraffle.
The syntax to do this is:
Whilst I can get this data into OmniGraffle so that I can see it in the interface I can't get my head around how to construct a way of getting at them.
Here's what I'm trying to do:
set myShapes to shapes of canvas of front window whose myKey is "myData"
I get all sorts of errors about how it can't find/coerce etc. I know it has to be my limited ability to construct the right argument.
I can get the dictionary out with the following script:
Any help would be appreciated.
Regards Alan
I've been working on a script to write values into the key/value user data dictionary available with shapes in the Pro version of OmniGraffle.
The syntax to do this is:
Code:
make new shape with properties {text:"My Shape", url:"http://...", user data:{myKey:"myData"}…
Here's what I'm trying to do:
set myShapes to shapes of canvas of front window whose myKey is "myData"
I get all sorts of errors about how it can't find/coerce etc. I know it has to be my limited ability to construct the right argument.
I can get the dictionary out with the following script:
Code:
tell application "OmniGraffle Professional 5" user data of graphic id 3 of canvas id 1 of document "Untitled" of application "OmniGraffle Professional 5" end tell
Regards Alan