: : Does anybody know how to open a file with a program that you opened with Python, say Word?: : I don't understand the question. Are you saying you used Python to start MSWord, and you want the Python code to make MSWord open a particular file?: : : [size=5][italic][blue][RED]i[/RED]nfidel[/blue][/italic][/size]: : [code]: $ select * from users where clue > 0: no rows returned: [/code]: :

: : : Does anybody know how to open a file with a program that you opened with Python, say Word?: : : : I don't understand the question. Are you saying you used Python to start MSWord, and you want the Python code to make MSWord open a particular file?: : : : : : [size=5][italic][blue][RED]i[/RED]nfidel[/blue][/italic][/size]: : : : [code]: : $ select * from users where clue > 0: : no rows returned: : [/code]: : : : : : yes, that is what I was asking, sorry for the badly worded message.:

Most programs, if you call it from the cmdline, its first argument is a file to open. I forgot Python's equivalent of the system() call in C, but you can use that to call msword then concat the filename you want to open.

Search the docs for the sys package, the function u need should be there.{2}rIng

: : : Does anybody know how to open a file with a program that you opened with Python, say Word?: : : : I don't understand the question. Are you saying you used Python to start MSWord, and you want the Python code to make MSWord open a particular file?: : yes, that is what I was asking, sorry for the badly worded message.

Ok, how did you open MSWord? Using the automation library ("Word.Application" or something like that) via the win32com python module?

: : : : Does anybody know how to open a file with a program that you opened with Python, say Word?: : : : : : I don't understand the question. Are you saying you used Python to start MSWord, and you want the Python code to make MSWord open a particular file?: : : : yes, that is what I was asking, sorry for the badly worded message.: : Ok, how did you open MSWord? Using the automation library ("Word.Application" or something like that) via the win32com python module?: : : [size=5][italic][blue][RED]i[/RED]nfidel[/blue][/italic][/size]: : [code]: $ select * from users where clue > 0: no rows returned: [/code]: : Yes, I opened Word with win32com