0

I have a list of over 200 partial file names:

Apple
Orange
Banana
...

I want a text file with a list indicating which of them exist inside an mp3 file on my hard drive.

I can type them one-by-one into my finder, but I would prefer to perform some batch operation to determine which ones are present and which are not.

7
  • What is your final goal? Do you want a txt file with a list of found files? Do you want to delete them? Copy to another folder? Nov 8, 2018 at 19:56
  • @MateusRibeiro Thanks, I edited my question. I want a text file with a list indicating which of them exist inside an mp3 file on my hard drive.
    – Keyslinger
    Nov 8, 2018 at 20:27
  • How is this an Apple related question?
    – Allan
    Nov 8, 2018 at 20:41
  • @Allan If I needed to know how to do this on Linux or Windows I would have asked elsewhere
    – Keyslinger
    Nov 8, 2018 at 20:45
  • The logic is no different on any of those platforms and the syntax is identical on Linux as is on macOS. Do you want this in AppleScript (which would make it very much on topic) or do you want a bash script Unix on SE might be a better location.
    – Allan
    Nov 8, 2018 at 20:53

1 Answer 1

1

You can place "OR" between names and do a regular Finder or Spotlight search. As you can see File4 is missing. Then you can click 'Save' and get a XML of the results.

enter image description here

2
  • This looks very promising, any idea if search has a character limit?
    – Keyslinger
    Nov 8, 2018 at 21:41
  • I'm not sure, best way to find out is testing. You can build an automator script to test several files at once, but since it looks like a one time operation I don't think it worth the trouble. Nov 8, 2018 at 21:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .