The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   AppleScripting Omni Apps (http://forums.omnigroup.com/forumdisplay.php?f=46)
-   -   newbie printing question (http://forums.omnigroup.com/showthread.php?t=11750)

artimus_aardvark 2009-03-27 05:29 AM

newbie printing question
 
Hi

I'm very new to applescripting and I just beginning to discover the power it offers. My first useful script for omnioutliner pro makes a new document containing all of the checked items in another list and then prints this new list out. This is the problem I can't get the printing to work.
Using this code

tell application "OmniOutliner Professional"
set newList to make new document at beginning of documents
-- populate newList with stuff
tell newList
print
end tell
end tell

gives an error saying that the document doesn't understand the print message. The new document is getting created and filled with the right details.
Any ideas what I'm doing wrong?


All times are GMT -8. The time now is 09:29 AM.

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