Copy Path in Nautilus
By sandipchitale on Aug 25, 2007
I recently switched to Ubuntu. Starting to like it.
Here is my first Ubuntu/Nautilus hack. Put the following python script:
# get the clipboard
clipboard = gtk.clipboard_get()
# set the clipboard text data
# make our data available to other applications
in the file:
Now launch Nautilus, select any file(s) or folder(s) and invoke pop up menu and select Scripts:Copy Path. The fully qualified path(s) of the file(s) or folder(s) will be copied to the clipboard.
Does anyone know a better way?