With scripts you can do many things such as :
- make an enhanced "open with"-alike feature (open some files that match a filter in your preferred application
- make a zip of a directory and mail it
- open a terminal in the selected directory
all of this with a simple right click.
You can find the Nautilus-scripts folder here :
Go to Home Holder and Click Ctrl + H to Open Hidden Files and looking for . .
~/.gnome2/nautilus-scripts
Adding scripts
1.place your scripts in the nautilus-scripts folder
2.name them accordingly to the label you want in the right-click context menu
3.make them executable (chmod +x my_script_name )
2.name them accordingly to the label you want in the right-click context menu
3.make them executable (chmod +x my_script_name )
Sample Scripts
Copy To Script :
Place the following code in a new file, give it a filename of copyto and make it executable with chmod a+x copyto. Move the new file to the ~/.gnome2/nautilus-scripts/ directory, open nautilus and you'll find a new right-click menu item entitled "Scripts" with a submenu that has an item that quickly copies a file to any directory you desire.
#! /bin/bash location=`zenity --file-selection --directory --title="Select a directory"` for arg do if [ -e "$location"/"$arg" ];then zenity --question --title="Conflict While Copying"
--text="File ""$location"/"$arg"" already exists.
Would you like to replace it?" case "$?" in 1 ) exit 1 ;; 0 ) cp "$arg" "$location" ;; esac else cp "$arg" "$location" fi done
3.Umount-Iso Script Download Here
4.Mount-Iso Download Here
5.Format Media Script Download Here
6.Open Terminal Here Script Download Here
You too can download script here , and chose what do you want to use because too many script
Thank's
By:Mr.Gm
0 komentar:
Post a Comment