Nautilus Script Fun

James McCormick rantman_2000 at yahoo.com
Mon Oct 11 20:49:59 UTC 2004


David M. Carney wrote:
> Here's a new one for you!
> 
> I've always wanted to be able to open a Gnome-Terminal in Nautilus and
> have the terminal be in whatever folder Nautilus was in.
> 
> I figured out how to do it.
> 
> Create a short script (make sure it is executable) in your
> ~/.gnome2/nautilus-scripts folder. Name it "Open Gnome-Terminal
> here...", or whatever you want to name it.
> 
> The script is:
> 
> -------------------------------
> 
> #!/bin/bash
> #
> cd -
> /usr/bin/gnome-terminal
> done
> exit0
> 
> -------------------------------
> 
> To use the script, just open Nautilus. Go to any folder that you want to
> open a terminal in and right-click on any part of the background (not a
> file or program icon).
> 
> Select the "open terminal" script from the scripts menu and a
> Gnome-Terminal should open and it will be in the folder that Nautilus is
> in.
> 
> David
> 

Could you tell an ignorant n00b how to write such scripts?  I've never 
been able to write a usable script, as they always just save as text files.





More information about the ubuntu-users mailing list