Re: Opening a file with system default application

2006-06-23 Thread BartlebyScrivener
>>> That also pops up a command shell window, which may not be >>> desirable. On Windows, there is >>> os.startfile("someknown.type") Ack. You're right. I get them mixed up. And os.startfile is Windows only. Sorry. rd -- http://mail.python.org/mailman/listinfo/python-list

Re: Opening a file with system default application

2006-06-23 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: >In <[EMAIL PROTECTED]>, >BartlebyScrivener wrote: > It would probably break like mad under *nix >> >> I bet it would work the same way on linux or os x; it's the equivalent >> of double-clicking on the file.

Re: Opening a file with system default application

2006-06-23 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, BartlebyScrivener wrote: >>> It would probably break like mad under *nix > > I bet it would work the same way on linux or os x; it's the equivalent > of double-clicking on the file. No it doesn't work. Double clicking is not an OS thing but a a GUI thing. Ciao,

Re: Opening a file with system default application

2006-06-23 Thread BartlebyScrivener
>> It would probably break like mad under *nix I bet it would work the same way on linux or os x; it's the equivalent of double-clicking on the file. rd -- http://mail.python.org/mailman/listinfo/python-list

Re: Opening a file with system default application

2006-06-23 Thread tac-tics
BartlebyScrivener wrote: > don't know Jython, but in Python, I think you want: > > import os > > os.system('mytextfile.txt') > > Whatever file you reference should open in the application associated > with it. At least that's the way it works on Win XP > > rd I didn't think about that. It would pr

Re: Opening a file with system default application

2006-06-23 Thread BartlebyScrivener
don't know Jython, but in Python, I think you want: import os os.system('mytextfile.txt') Whatever file you reference should open in the application associated with it. At least that's the way it works on Win XP rd -- http://mail.python.org/mailman/listinfo/python-list

Opening a file with system default application

2006-06-23 Thread [EMAIL PROTECTED]
I'm writing a GUI application in Jython which takes a database text file and performs some operations on the data, finally spitting out a group of CSV files. I generate a log file and several CSV files and I thought it would be helpful if I could add a button the user could click on to automatical