Re: How to get file parameters for a Nautilus Script while
- From: "Peter Enseleit" <penseleit gmail com>
- To: grumz grumz net
- Cc: nautilus-list gnome org
- Subject: Re: How to get file parameters for a Nautilus Script while
- Date: Wed, 26 Apr 2006 09:20:03 +1000
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!
Peter.
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,
Fred
[1] http://www.grumz.net/node/4
Peter Enseleit wrote:
>I have read in the Gnome Users Guide (
http://www.gnome.org/learn/users-guide/latest/gosnautilus-440.html)
>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
http://mail.gnome.org/mailman/listinfo/nautilus-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]