Applescript Finder Search over Network

Hello

I need an Applescript that will

  1. Open Finder
  2. Type a word in the search field, and
  3. Collect the results.
  4. Additionally it must search “Shared” drives and not just “This Mac”

Any ideas?

I was able to write something similar using a shell script("find /Volumes -name “filename”) but it was soooo sloooow. It took 10+ minutes per file.

I have a list of 400+ files I need to pull from the server at my work, and automating this will save a lot of time.

I appreciate any help

Thank you

Hi,

for searching on shared drives, which aren’t supported by Spotlight, /usr/bin/find is the fastest way,
much faster than any native AppleScript solution. Maybe your network connection is quite slow anyway

Thank you

It’s definitely not my internet connection. When I search for these files in Finder we’re talking 5-10 SECONDS to search. whereas “user/bin/find” is still taking 5+ MINUTES each when I run it in terminal.

Any other ideas?