RSS

Enable “path view” on top of Finder window

0 Comments | This entry was posted on Dec 07 2008

I saw this at The Unofficial Apple Weblog and thought it was nice because I hate that you can’t see what folder you are in by default.
Open a terminal and type:

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

And you have your location at the top of the window. I don’t even have a Apple anymore but this still may be useful in the future. Only works in OSX 10.5.5+

Open files as root (the easy way)

1 Comment | This entry was posted on Dec 06 2008

I ran across a couple of tips in Linux to open a file as root without having to use a terminal. The first is a shortcut on your desktop. To make this one just right click on your desktop and then select “Create Launcher…”. When the dialog box pops up you can put in whatever you want for “Name” and “Comment” but for “Command” just put in the following command.

gksudo “gnome-open %u”

Now to open a file as root all you have to do is open the file location and drag the file to that shortcut. The system will probably ask you for your root password and then open the file as root.

A easier way is to browse to ~/.gnome2/nautilus-scripts/ and create a new file called “Open as root”. Edit the file and put

#!/bin/sh
gksudo “gnome-open $NAUTILUS_SCRIPT_SELECTED_URIS”

inside the file. Right click on the file and go to properties -> permissons then check the box that says “Allow executing file as a program”. Now all you have to do is right click on a file you want to open as root, go to scripts and click “Open as root”.

I just wanted to pass these along cause I thought they were very helpful.