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 > OmniGraffle > OmniGraffle General
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Access "Wrap To Shape" property from Applescript? Thread Tools Search this Thread Display Modes
How do I control the property behind the "Wrap To Shape" checkbox via Applescript?

Thanks, Rob ! :-)
 
Last I checked I could not find it either. It does not seem to show up via the "Copy As Applescript" technique.
 
If you select a shape and use the inspector to uncheck "wrap to shape", you should find that you can restore wrapping by setting the autosizing property of the shape to overflow.

Code:
tell application id "OGfl"
	set lstSeln to (selection of front window) as list
	tell item 1 of lstSeln to set autosizing to overflow
end tell
 
Interesting. But if my script itself is creating the shapes, and I want that script to selectively turn on or off the 'Wrap' boolean property with no manual intervention, how do I do this?

p.s. in my case, I need the shapes with autosizing=overflow to have Wrap=False, but need to do it via script.

p.p.s. I need to make a small colored shape for each of my objects, with some text describing each shape offset to the right of each object (attached). I'm tweaking the 'side_padding' property to offset the text, using autosizing of 'Overflow' so the text will show outside the shape boundary, and need 'Wrap'=False so the text will show up at all.

Thanks!
Attached Thumbnails
Click image for larger version

Name:	Screen shot 2013-01-10 at       Thu Jan 10, 8.51.30 AM.png
Views:	337
Size:	19.0 KB
ID:	2685   Click image for larger version

Name:	Screen shot 2013-01-10 at       Thu Jan 10, 8.51.23 AM.png
Views:	326
Size:	4.9 KB
ID:	2686  

Last edited by Sophie; 2013-01-10 at 06:54 AM..
 
I'm afraid that the solution to that eludes me :-)

May be time for Help > Send Feedback ... in the OGfl menu.

Good luck !
 
Maybe I don't understand the problem correctly, but how about using a document which starts out with a set of the desired shapes to use as templates which the script duplicates to get around any weakness in the scripting model? You could have them be drawn invisibly or perhaps hidden away in another layer.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to FIND text in columns that have the type property set to "pop-up list" qomni OmniOutliner 3 for Mac 20 2013-12-04 04:18 PM
Can't sort a column when its type property is set to "pop-up list" qomni OmniOutliner 3 for Mac 8 2012-02-02 11:05 AM
OmniFocus scripts would benefit from a "has subtasks" property RobTrew OmniFocus Extras 0 2010-06-09 04:37 AM
Crashes when scripting "group rank" property in OmniGraffle timcoffman AppleScripting Omni Apps 1 2009-07-09 07:50 AM


All times are GMT -8. The time now is 02:18 PM.


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