View Single Post
I could really use an example of querying for a shape based on the user data property of a shape.
Below are two examples, the later one is what I'm trying to use, but I don't know how to structure the query properly. The first query will show the user data the I'm trying to query on for the second statement.

get the user data of every graphic whose size is equal to {textwidth, textHeight}

get every graphic whose user data contains {name:"ObjectType", value:"App Type Text"}
:confused:

The log result looks like:

get user data of every graphic of canvas id 1 of document "Untitled 15" whose size = {190, 12}
{{|ObjectType|:"App Type Text"}, {|ObjectType|:"App Type Text"}, {|ObjectType|:"App Name Text"}, {|ObjectType|:"App Name Text"}}

get every graphic of canvas id 1 of document "Untitled 15" whose user data contains {name:"ObjectType", value:"App Type Text"}
{}