Tag Archives: cmd-f

Set Finder to Search “File Name” instead of “Contents” on Mac OS X Leopard

Here’s my solution to getting the “File Name” box by default when pressing Cmd-F when in a finder window on Mac OS X. This is not perfect, but it’s pretty good. Since it has to call automator / applescrpt there might be a 1 second delay after you press the key. Let me know if anybody has a way to speed that up. So… Note: There is an easier way to do this (than below). Instead of using cmd-f just use cmd-shift-f and it will default to file name instead of contents :) However, if you are really set on having Cmd+f search file names, check out the section below. Part I: Create a Service with Automator Launch Automator and choose “New Service” Click on the record button and when it is recording, choose a finder window, and do something, like change the view prefernces (icons, list, anything really). Then press stop recording. Back in automator you will now have your recording, but at the top you will also have something that says “Service Receives” and change that from “text” to “no input” and then choose “Finder” for the application. If you didn’t do the previous step of recording something where you activated finder, you won’t be able to select finder her. Remove the thing you recorded in the right hand pane, and then choose Applescript from the left side. Paste in this code: on run {input, parameters} tell application “System Events” to tell process “Finder” set frontmost to true … Continue reading

Posted in Mac, Tech Tips | Tagged , , , , | 5 Comments