A quick comment on these excellent scripts:
When applescripting OO3, using the idiom:
"make new document"
has the disadvantage that it bypasses the default template, serving up a raw "factory settings" OO3 file.
If you wanted to create a new file based on the default (or some other) template you could adopt the idiom illustrated by the following snippet, which I have extracted from a current project:
Code:
tell application "OmniOutliner Professional"
activate
tell application "Finder"
set strTemplate to alias ((path to application support from user domain as string) & "OmniOutliner 3:Templates:" & "Default.oo3template")
end tell
if (exists strTemplate) then
open strTemplate
set oTmpDoc to front document
else
set oTmpDoc to make new document
end if
set strTempPath to strDocsPath & strFileName
save oTmpDoc in strTempPath
close oTmpDoc
end tell