Jump to content


  • Content Count

  • Joined

  • Last visited

  1. hey @deanishe, thank you for your suggestion! i ended up already in my own implementation using a shellscript which uses mdfind internally. in the end i did not check if there are no results, but append a "create" item all the time. in case somebody wants to do something similar, my code is attached below. cheers #!/bin/bash QUERY=${1} DIRECTORY="/some/directory" RESULTS=$(mdfind -onlyin "${DIRECTORY}" "kMDItemContentType == 'net.daringfireball.markdown' && (kMDItemDisplayName == '${QUERY}*'c || kMDItemTextContent == '${QUERY}*'c)") SAVEIFS=${
  2. I use a File Filter to search within files of a specific folder. In case there is no file found (e.g. no file for query XYZ), I would like to provide a custom entry like "Create XYZ" which then allows me to trigger the creation of a new file using the "XYZ" query string. The creation of the file is not the problem; I am wondering if this custom entry is possible at all without implementing the file search functionality on my own using a script filter. Does anyone have an idea how this could be approached using Alfreds built-in features? Thanks
  • Create New...