[Pythonmac-SIG] Saving a file???
Tom Weir
Tom.Weir at safe.com
Wed Oct 25 22:22:01 CEST 2006
Hi All,
I'm trying to create and save a new OmniOutliner doc, but I'm having
some trouble trying to figure out what to pass as the _in parameter.
Any suggestions? A script snippet is below.
Thanks,
Tom
from appscript import app,k
oo = app("OmniOutliner")
d = oo.documents.end.make(new=k.document)
#...
#add rows, etc...
#...
#newFile doesn't exist yet, so the following doesn't work:
#from Carbon.File import FSSpec
#newFile = FSSpect("/tmp/aNewFile")
oo.save(d,in_=newFile)
More information about the Pythonmac-SIG
mailing list