Re: tell Sherlock to find file?
Re: tell Sherlock to find file?
- Subject: Re: tell Sherlock to find file?
- From: Michelle Steiner <email@hidden>
- Date: Mon, 22 Jan 2001 05:40:32 -0800
On 1/22/01 3:31 AM, Norbert Vischer <email@hidden> wrote:
>
I would like to tell Sherlock to find a file whose name I know exactly.
>
I was told that a Sherlock script can only 'Find by content'; if this
>
is true, I wonder why such a basic thing like find file by name is
>
not possible!.
It will find by name and content simultaneously, I believe.
If you want to find by name only, you have to save the search criteria
and have the script use that. Here's an example.
tell application "Sherlock 2"
set searchResult to search using alias "Macintosh HD:Desktop Folder:my
search critera"
end tell
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------