When I get the properties of a shape, Omnigraffle returns a dictionary of key-value pairs. When I create a new shape I can similarly send in a bunch of properties as a dictionary e.g. (Python/appscript):
doc.make(new=k.label,
at=line.labels.end,
with_properties={k.text: 'foo', k.draws_stroke = True})
Is there a similar way to update a bunch of properties of an existing shape with a single call, passing in a dict of properties? If so, any restrictions on which properties can be set this way?
e.g. I tried
shape.properties.set({k.locked: True}) and it worked.
shape.properties.set({k.text: 'foo'}) and it did nothing.
Thanks
doc.make(new=k.label,
at=line.labels.end,
with_properties={k.text: 'foo', k.draws_stroke = True})
Is there a similar way to update a bunch of properties of an existing shape with a single call, passing in a dict of properties? If so, any restrictions on which properties can be set this way?
e.g. I tried
shape.properties.set({k.locked: True}) and it worked.
shape.properties.set({k.text: 'foo'}) and it did nothing.
Thanks
Last edited by Sophie; 2012-11-08 at 07:01 PM..