I want to be able to create a program that can save text files with my own extension at the end. later the user should be able to double click on that file to run the program and open that file.
I need to know how to make the python program the default program a file opens whenever the user double click on it , and also how to get that file when the program starts running.
python 2.7 mac os x 10.6 and windows 7
edit: say as an example, i was making a paint program. the user wants to save the file he was working on. my program will save it as untitled.paint, later the user double click on untitled.paint and expects my program to open up that file.
is there a way for me to tell the operating system to open all files ending with .paint with my paint program.
I can't save it as a .jpg because that won't save the layers or anything else.