I have a piece of python that needs to open up a file in OSX, via its default application, that is selected inside Tkinter file open control. I do not know what the file type is when it is selected nor the default app.
Tk().withdraw()
filename = askopenfilename()
child = subprocess.check_call("open" ,filename)
My problem is this does not work...if I include shell=True is does but I need to capture the PID of the application that started not the pid of the shell that executed the command.
Any thoughts?
Thanks C