Re: How to get file parameters for a Nautilus Script while

Thanks Fred,

I figured out the info I need.

I just had to re-read the information on the web site and try it in a script for myself.

While Nautilus Scripts are not passed any parameters while browsing on a Remote Server, Nautilus still sets environment variables with a list of the selected files in URI format,  (NAUTILUS_SCRIPT_SELECTED_URIS), the current location in URI format , (NAUTILUS_SCRIPT_CURRENT_URI), and the position and size of the current window, (NAUTILUS_SCRIPT_WINDOW_GEOMETRY)..

A fourth environemnt variable is  left empty on non-local operations: NAUTILUS_SCRIPT_SELECTED_FILE_PATHS.

Any Nautilus Script can use these environment variables to do stuff with.

Thanks or your advice, though.

Nautilus-Actions are great!


On 4/26/06, RUAUDEL Frédéric <ruaudel embl fr> wrote:
Maybe you could try to convert your nautilus script into a
nautilus-actions action [1]. You will have the possibility to have
contextual appearance of your script in the popup menu and all the
parameters you need will be available to your script even included the
hostname and login of the connection.

Feel free to contact me if you need more info about it.

Best regards,



Peter Enseleit wrote:

>I have read in the Gnome Users Guide (
>that when you are browsing a remote server, such as FTP through Nautilus, Nautilus Scripts are not passed any parameters.
>This essentially means many, if not most, scripts will not actually work.
>I realize it is probably a security feature, but is there any way to get around this?
>In other words can I get file information, especially file name and path passed to my script as a parameter?
>Thanks for your help,
>Peter Enseleit

nautilus-list mailing list
nautilus-list gnome org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]