I want to write a Nautilus script in Python. Is that possible? If it is possible, how can I do that?
Nautilus scripts can be written in any programming language, including python. You just need to make your python source file executable and copy it to
Nautilus extensions have more flexibility than scripts - eg. they can be used to add an item directly to the context menu. There is are python bindings available (python-nautilus ).
I assume you want nautilus context menus extensions, there is a detailed article describing how to do it: