How to find a file by filename?


I am trying to search for a file by filename with Applescript. I’m doing this:

tell application "Sherlock 2"
set current tab to Find File Tab
search for "filename"
end tell

Sherlock always seems to search by content, no matter what I do. Is there any way to search for files by filename only?


Same here with Sherlock 1. I could not get it to work with any variation of Sherlock dictionary syntax (what’s up with that?).

This works fine if you are using file names with less than 20 characters. Requires Sigma’s Addition for typing.

tell application "Sherlock"
set current tab to Find File Tab
type text "Script Editor" --twenty character limit
type text return
end tell