Jump to content

pbjacob

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by pbjacob

  1. I want to search a file on my Mac according to its filename and its parent folder's name. 

     

    For example, I know the target filename is 'aaa' like, and it is contained by a 'bbb' like named folder:

    -document
        -bbb_folder
          -sub_folder
             aaa_file.pdf

    If I search the file in Alfred via:

    find bbb aaa

    There will be no results at all.

     

     

    Actually, this target file can be found by the following command in the terminal:

    mdfind aaa | grep -i bbb

    It is said that, the search engine of Alfred is based on Spotlight, however Spotlight treats the path in a special way, it can't be used in constructing searches.

     

    So, I wonder, is there an already existed workflow that can find a file using filename and folder name?

     

    Thanks so much!

×
×
  • Create New...