Archive for the 'Finder' Category


Remove Duplicate Entry in Finder’s “Open With” Menu 0

A useful howto on removing excessive entries in Finder’s Open With menu. If you, like me, have been beta-testing several versions of the same software on OS X, chances are that when you right-click on a file, you will end up with having a ‘Open With’ menu fills with many duplicate entries of the same application. This menu list is supposed to be updated automatically by OS X itself, however, it seems that it doesn’t update it as often.

A simple and yet effective way or resetting the is as follows:

1. Go to the Preference folder located inside the Library folder in your home directory (i.e. *yourusername*/Home/Library/Preferences/)

2. Locate the file named com.apple.LaunchServices and delete it

After that you could relaunch the Finder and the Open With menu should no longer contain any duplicate entry.

Spotlight Icon Missing from the Menu Bar after Upgrading to Leopard 0

After upgrading to the Mac OS X Leopard (10.5.8), I’ve noticed the Spotlight icon has gone missing from my menu bar (see attached picture). After poking around the system, I found that some directories are with invalid permissions. I have no idea as how this happened, maybe it occurred during the upgrade process?

Anyway, I run the Disk Utility ( Applications -> Utilities ), select the startup disk (the disk where you have OS X installed) and then click on Repair Disk Permissions. It found quite a few errors and then fixed them accordingly. After the repairing process and reboot the OS X – guess what, the Spotlight icon appeared once again on the menu bar and functioning correctly. It seems that those incorrect permissions somehow prevent Spotlight to appear and function properly. I guess it’s always a good idea to run a Repair Disk Permissions whenever you upgrade the system anyway.

MenuBarOFLeopard

Open New Finder Window from the Current Location 0

A pretty handy tip I picked up from the Mac OS X Hints. If you tend to open multiple Finder windows for organising/moving folder/files on the Mac OS X. This script helps to reduce the time after you open a new instance of Finder (ctrl + N) and navigate through endless sub-directories to reach the folder you want.

In more details, this Applescript gets the location of the front-most Finder window and opens a second instance of Finder with the same path and view. If there is no Finder windows at the present when this script is executed, it launches a new Finder window at the system root directory (or any other pre-defined target path).

tell application "Finder"
get the exists of the front Finder window
if the (exists of the front Finder window) is true then
try
set newWindow to target of front window
set oldView to current view of front window
make new Finder window to newWindow
set current view of front window to oldView
end try
else
try
make new Finder window to alias ":"
set the current view of the front Finder window to column view
end try
end if
end tell

Copy above script and paste it to the new project window opened via the ‘Script Editor.app’ (Applications/AppleScript/), then choose ‘application’ as the ‘File Format’ and then save/compile the project with a meaningful name such as ‘CloneFinder’. Once that is done, drag ‘n drop the newly compiled CloneFinder.app on to the Finder tool-bar for quick access!!