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

 
Change Page Setup params through AppleScript GUI Scripting for OmniGraffle 5 Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Hello,

I have been trying to figure out how to set some of the values of the "Page Setup" window through GUI Scripting in AppleScript in OmniGraffle Professional 5. From what I have been told by OmniGroup Tech Support, there is currently no way to this through the commands available within the OmniGraffle AppleScript Dictionary, so I have been trying to do this with GUI Scripting.

I have written a script that from what I can tell is supposed to work properly as it does open the "Page Setup" window and gets me to the right menus. The problem is that when I try to actually set the value of the pop up button, it just errors out and says the index is invalid. Has anyone done this before or maybe point out an error in my script that I might be overlooking? Thanks.


activate application "OmniGraffle Professional 5"
tell application "System Events"
tell process "OmniGraffle Professional"

tell menu item "Page Setup…" of menu 1 of menu bar item "File" of menu bar 1
click
tell pop up button 3 of sheet 1 of window 1
click
tell menu 1
click menu item "Any Printer"
end tell

end tell

end tell
end tell
end tell
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
different page-setup for each canvas MatthewS OmniGraffle General 3 2012-05-16 09:08 AM
Page Setup powers OmniGraffle General 1 2008-12-18 10:04 AM
Don't see Page Setup Dialog box PaulFoglia OmniPlan General 6 2008-10-17 02:02 PM
How do I change the font in every page of a multi-page doc? (Applescript?) Andrew N OmniGraffle General 4 2008-08-20 06:16 PM
Change in OF Scripting Interface curt.clifton OmniFocus Extras 4 2007-09-06 06:35 PM


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


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