Mate Caja Scripts

Forum rules
Before you post please read how to get help
Post Reply
zaileion
Level 4
Level 4
Posts: 220
Joined: Sun Jan 25, 2015 6:01 pm

Mate Caja Scripts

Post by zaileion »

I've been looking for "Nautilus like Scripts" for Caja but no luck. I downloaded these scripts from various places over the internet and ported them for Caja.

1. Download the scripts and copy them into /home/xxxx/.config/caja/scripts (Change xxxx to your name.) (If you don't see the .config folder click "view" and select "show hidden files")

2. Right click on each script select "Properties"
3. Click permissions tab and make sure the box is checked next to "Allow Executing File as a Program"

Now whenever you right click something you will see a "Scripts" option in the contextual menu. just click the script of your choice and it will run.

*** If a script in your script folder does not show up in the contextual menu that's because you didn't complete step 3. ***


Here are the scripts:
https://drive.google.com/folderview?id= ... sp=sharing

UPDATE: In post 7 below there is a zip file containing all the scripts edited to work with Linux Mint so you can download the .tar.gz file and just extract it to the scripts folder.
Last edited by zaileion on Sat Nov 02, 2019 11:08 am, edited 1 time in total.

User avatar
Minterator
Level 5
Level 5
Posts: 596
Joined: Thu Jan 10, 2013 8:29 am

Re: Mate Caja Scripts

Post by Minterator »

Thank you. I'm curious about the Copy-To scripts. You create a variable named FILE but you don't seem to use it. How do these Copy-To scripts work with the $@ variable?
Mint 17.3 MATE, kernel 4.11.12

vistad
Level 4
Level 4
Posts: 273
Joined: Tue Feb 08, 2011 9:17 am

Re: Mate Caja Scripts

Post by vistad »

Thanks a lot for the scripts! :D
LM19-1 64 Mate, i7-6770K fanless Thermalright HR22, Asus Maximus VIII Gene, 32Gb RAM, NVMe SSD Samsung 960 PRO M.2, 25Gb ext2 /, 1GB swap, the rest is ext4 /home, Vbox Win8.1-64

zaileion
Level 4
Level 4
Posts: 220
Joined: Sun Jan 25, 2015 6:01 pm

Re: Mate Caja Scripts

Post by zaileion »

So... instead of clicking each script and setting execute simply do the following to set execute on all scripts at once...

Open the location of the scripts
/home/xxxx/.config/caja/scripts
Right click in a blank area and select open in terminal
Then type

Code: Select all

chmod +x *

To use the "Open with Pluma" scripts you need to install Pluma. Linux Mint has changed text editors. I will eventually add more scripts to utilize the default text editor but for now here is the command to install the previous default text editor Pluma.

Code: Select all

sudo apt-get install pluma
Or

Change pluma to xed in the scripts which is the default text editor in Linux Mint


Also, the scripts with "as root" need to be edited. open the script files with a text editor and replace gksudo with pkexec there are 2 scripts that are open as root. gksudo has been removed from ubuntu and replaced with pkexec.
Last edited by zaileion on Sat Nov 02, 2019 10:53 am, edited 4 times in total.

gm10
Level 20
Level 20
Posts: 10856
Joined: Thu Jun 21, 2018 5:11 pm

Re: Mate Caja Scripts

Post by gm10 »

You don't need sudo to change permissions of your own files.

FYI: viewtopic.php?p=1635189#p1635189
Tune up your LM 19+: ppa:gm10/linuxmint-tools

zaileion
Level 4
Level 4
Posts: 220
Joined: Sun Jan 25, 2015 6:01 pm

Re: Mate Caja Scripts

Post by zaileion »

So here is a huge package of scripts. They are older and written for use with Gonme, Nautilus and Gedit but some simple editing replacing Nautilus with Caja, Gedit with Xed, gksudo with pkexec, and a few others will make them work on with Mate. I'm working on them here and there, as time progresses I'll upload my edits and if anyone else makes edits share as well... Maybe over time we can get a nice bundle of scripts specifically for Linux Mint!

I cannot write scripts, i can just tinker with existing ones and get'em to work. Here is where I downloaded the scripts pack from. http://g-scripts.sourceforge.net/
Attachments
nautilus-scripts.tar.gz
(73.94 KiB) Downloaded 56 times

zaileion
Level 4
Level 4
Posts: 220
Joined: Sun Jan 25, 2015 6:01 pm

Re: Mate Caja Scripts

Post by zaileion »

I have made some edits to the scripts in the original post so they work with Linux Mint. I chose to go the route of installing Pluma instead of editing the scripts to work with Xed, I guess I'm old and still prefer Pluma...
Attachments
Mate-Scripts-2_Nov_2019.tar.gz
(2.37 KiB) Downloaded 74 times

Post Reply

Return to “MATE”