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

 
Learning to script OmniGraffle Thread Tools Search this Thread Display Modes
Where does one go to learn how to script OG? Reading the scripting dictionary only takes you so far.

My immediate problem: how to get/set the text in an existing text object.
So far, I haven't been able to figure out how to refer to the text object. In an existing drawing, how do I figure this out?

tell application "OmniGraffle Professional 4"
tell document "My Doc"
tell layer 1 of canvas 1
what goes in here?
end tell
end tell
end tell
 
You can get a head start on how OmniGraffle objects are handled via AppleScript by creating an object, and then copying it as AppleScript from the Edit Menu --> Copy As submenu.

Hope that helps,
__________________
"Vroom! Vroom!!"
 
OK, I'm making progress, but now I need to know how to make OmniGraffle Pro 4 print. There's only one document open.
tell application "OmniGraffle Professional 4" to print front document without print dialog
just gives an error message: "document 1 doesn't understand the print message"
"print document 1" gives the same message.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script: Export from FoldingText outline to OmniGraffle diagram RobTrew OmniGraffle General 0 2012-10-04 12:44 PM
Omnigraffle 5.4 - Apple Script Font Issue marxes OmniGraffle General 6 2012-06-13 09:17 AM
Script: Copy and past line from OmniGraffle to OmniGraphSketcher RobTrew OmniGraffle General 0 2011-11-12 03:08 PM
Script: Invert / toggle OmniGraffle selections RobTrew OmniGraffle General 1 2011-11-06 06:25 AM
Apple Script for layer visibility in OmniGraffle Pro 4? nicoledb OmniGraffle General 0 2009-02-04 07:52 AM


All times are GMT -8. The time now is 08:49 PM.


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