Nautilus Action Scripts

Add functionality to the Nautilus file browser with these scripts.

Copy or symlink individual files to ~/.local/share/nautilus/scripts/ to add action scripts to the Nautilus context menu.

Copy the path of a file to the clipboard

copy-path.sh

#!/usr/bin/env bash
echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | xclip -selection clipboard

Create an ISO image from any number of files using the current date as the filename

make-iso.sh

#!/usr/bin/env bash
tmpfile=$(date +\%Y_\%m_\%d\_%H_\%M_\%S)-iso.tmp
echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | tr -d '\r' > $tmpfile
mkisofs -o $(date +\%Y_\%m_\%d\_%H_\%M_\%S).iso $(cat $tmpfile)
rm $tmpfile

Create a new text file using the current date as the filename

new-text-file.sh

#!/usr/bin/env bash
echo '' > $(date +\%Y_\%m_\%d\_%H_\%M_\%S).txt

Also available on GitHub