Tuesday, January 11, 2005

Nautilus hide-script

http://g-scripts.sourceforge.net/
hide | show
Welcome!

Wouter Bolsterlee commented on my blog about the .hidden-trick and posted a Nautilus-script he wrote. Nice! How to use this script ? Copy the code he posted, paste it in a new file and save this in /home/username/.gnome2/nautilus-scripts (create this directory if it doesn't exist) as "Don't show in nautilus", "Hide" or whatever you like. Don't forget to make it executable; browse to /home/username/.gnome2/nautilus-scripts, right-click the file you just saved, select "properties", go to the 'permissions'-tab and enable the "execute" option for "Owner:". Now you can use this script by right-clicking a file in nautilus, opening the menu "Scripts" and selecting it in the menu. There are more great things to do with nautilus-scripts, like rotating images, opening a terminal 'within' a specific directory, send a file by email, install a software-package etc. I'll talk about this later in a special blog about Nautilus-scripts!

Cheers!

Labels:


5 Comments:

Blogger elephantum knowledgely replied ...

that would be nice to have 'unhide all' script also

3:21 PM, January 11, 2005  
Blogger Karel Demeyer knowledgely replied ...

Shouldn't be difficult with a bash nautilus-script as it's just about removing the .hidden file in a certain directory. I'm not ganno try this now as I just wanted to leave my computer to study ;).

4:32 PM, January 11, 2005  
Anonymous Anonymous knowledgely replied ...

Easy one... to show all files:

#!/usr/bin/env python
#
# (c) Wouter Bolsterlee <uws@xs4all.nl>
#
# LICENSE
# Creative Commons Attribution-ShareAlike 2.0; see
# http://creativecommons.org/licenses/by-sa/2.0/ for more
# information.
#

import os, os.path, sys
from urllib import unquote
prefix = 'file://'
dot_hidden = os.path.join(os.environ['NAUTILUS_SCRIPT_CURRENT_URI'], '.hidden')
if dot_hidden.startswith(prefix):
dot_hidden = unquote(dot_hidden[len(prefix):])
os.unlink(dot_hidden)

5:25 PM, January 11, 2005  
Blogger Karel Demeyer knowledgely replied ...

Thanks Wouter! :) Are you a gnome developer too or just a user ? If you're a gnome-loving user (not developer) and you'd like to cooperate on this blog, please contact me, hoe meer zielen hoe meer deugd ;) (this was a Dutch saying which says "the more people the more fun" ;)).

5:57 PM, January 11, 2005  
Anonymous Anonymous knowledgely replied ...

A little something unrelated that I figured out today:

I've made the switch from Firefox to Epiphany, but there are a few things that I don't like. One is the default behavior to open new windows from external applications (I prefer same window, but with a new tab).

I couldn't find a preference or gconf setting to fix this, though, but the following worked perfectly:

Applications -> Desktop Preferences -> Advanced -> Preferred Applications

command: epiphany -n %s

Just thought I would share.

Also, keep up the good work, I await your new tips, and the feeling of power they give me.

5:21 AM, January 12, 2005  

Post a Comment

<< Home

-->