Pelajaran Nautilus script kita kali ini adalah Klik kanan rotate to right , yang artinya kita akan menambah fungsi klik kanan kita untuk membuat sebuah image untuk dapat berputar kekanan 90 derajat, Langsung praktek aja yuk :
1.Buka Aplication > Accessories > Text Editor
2.Copy teks dibawah ini, paste di Teks Editor, simpan dan beri nama (misalnya : Rotate Rigt)
#!/bin/bash
# FILE: rotate_image --
# AUTHOR: W. Michael Petullo
# DATE: 31 May 2001
#
# Copyright (C) 2001 W. Michael Petullo
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
mogrify -rotate 90 $*
3.Masuk ke Nautilus klik kanan file "Rotate Rigt", pilih properties Masuk ke tab Permission, Centang Allow Executing File As Program.
4.Copy file tersebut ke dalam folder /home/nama_user_anda/.gnome2/nautilus-scripts (jika tidak menemukan folder .gnome2 pada file manager klik menu view lalu pilih Show Hidden Files atau tekan Ctrl +H)
5.Sekarang kita bisa memutar image kekanan cukup dengan Klik kanan pada image > Scripts > Rotate Rigt
Semoga bermanfaat
Klik kanan Image rotate right (via nautilus script)
Label:
Nautilus Script