When writing a Nautilus script, $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS gives the path to the file whose context menu has been clicked, for instance /home/nico/test.txt.
But when the file is within a WebDAV share, the variable is empty.
Is it a bug?
How to get the path for a WebDAV file?
My script is intended to be used for files on WebDAV shares.

I have just found this list of variables:
https://help.ubuntu.com/community/NautilusScriptsHowto
The one I was looking for is
$NAUTILUS_SCRIPT_SELECTED_URIS, it works on WebDAV too, returning for instancedav://admin@localhost:8080/alfresco/webdav/User%20Homes/leo/test.txt