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

 
Can I name an OmniGraffle window in AppleScript? Thread Tools Search this Thread Display Modes
I am using Omnigraffle Pro 5 and creating a complex image using AppleScript. This is drawing shapes to the front window which it identifies like this:

tell application "OmniGraffle Professional 5"
make new document
tell layout info of canvas of front window
set type to hierarchical
set direction to left to right
set rank separation to 0.2
end tell
tell canvas of front window
set columnAlignment to left
[...]

Is it possible instead to create a window with a name, like "myDiagramWindow" or such-like, and use that as the destination for commands instead of "front window"? This would get around an occasional problem I have found where if I choose the OmniGraffle application part-way through drawing the diagram it starts drawing into a new window, and I end up with two partial diagrams!
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
applescript to copy an OmniGraffle graphic? supertwang AppleScripting Omni Apps 3 2011-12-08 09:56 PM
Default window doesn't open after running Applescript ryans OmniFocus Extras 4 2010-10-29 09:48 PM
Mouse clicks in Omnigraffle window ignored bscashman OmniGraffle General 4 2010-03-29 03:51 PM
AppleScript-Omnigraffle Documentation? Daria OmniGraffle General 2 2009-07-22 11:18 AM
Show document in a new window via applescript... 0mni0ne OmniGraffle General 0 2008-08-20 10:56 PM


All times are GMT -8. The time now is 12:24 PM.


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