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

 
Finding a graphic using user data property Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
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"}
{}
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature request: %variable% to show user data? ericscheid OmniGraffle General 1 2012-02-04 05:31 PM
AppleScript to query the user data key/value pairs apl OmniGraffle General 2 2012-01-14 02:05 AM
Applescript: user data item of canvas cyleigh OmniGraffle Extras 1 2011-05-04 09:59 PM
Leveraging custom/user data fink08 OmniGraffle General 1 2009-11-12 08:08 AM
Sharing OF data across user accounts beelers OmniFocus 1 for Mac 0 2007-11-24 05:51 PM


All times are GMT -8. The time now is 06:16 AM.


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