View Single Post
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?