[X4U] Finding file names only

John Baltutis baltwo at san.rr.com
Sun Feb 12 14:54:38 PST 2006


On 02/12/06, Jim Hurley <jhurley at infostations.com> wrote:
>
> Is it possible to restrict Spotlight to find file names only, as in
> the old Mac OS?

Yep. Use EasyFind or see
<http://www.macosxhints.com/article.php?story=20050501162147222>. If you decide
to modify the default_smart.plist, then use the below modification for which
CMD + F (or Finder->Find) brings up a search window with Filename and Visible
as its defaults.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>RawQuery</key>
	<string></string>
	<key>SearchCriteria</key>
	<dict>
		<key>CurrentFolderPath</key>
		<string>/</string>
		<key>FXCriteriaSlices</key>
		<array>
			<dict>
				<key>FXAttribute</key>
				<string>kMDItemFSName</string>
				<key>FXSliceKind</key>
				<string>Othr</string>
				<key>Operator</key>
				<string>S:**</string>
				<key>Value</key>
				<string></string>
			</dict>
			<dict>
				<key>FXSliceKind</key>
				<string>Svis</string>
				<key>Value</key>
				<string>No%20%20</string>
			</dict>
		</array>
		<key>FXScope</key>
		<integer>0</integer>
	</dict>
	<key>Version</key>
	<string>10.4</string>
</dict>
</plist>

Delete these lines, if you don't want visible as an option:

			<dict>
				<key>FXSliceKind</key>
				<string>Svis</string>
				<key>Value</key>
				<string>No%20%20</string>
			</dict>

Use the Terminal app to backup the current default_smart.plist, stored in
/System/Library/CoreServices/Finder.app/Contents/Resources/, and copy the new
one to the same place.

Add this, it you want to search for path:


			<dict>
				<key>FXAttribute</key>
				<string>kMDItemPath</string>
				<key>FXSliceKind</key>
				<string>Othr</string>
				<key>Operator</key>
				<string>S:**</string>
				<key>Value</key>
				<string></string>
			</dict>


More information about the X4U mailing list