{"id":39778,"date":"2023-06-16T14:34:14","date_gmt":"2023-06-16T18:34:14","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=39778"},"modified":"2024-10-21T14:14:16","modified_gmt":"2024-10-21T18:14:16","slug":"find-any-file-2-4","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2023\/06\/16\/find-any-file-2-4\/","title":{"rendered":"Find Any File 2.4"},"content":{"rendered":"<p><a href=\"https:\/\/findanyfile.app\/versionhistory2.html\">Thomas Tempelmann<\/a> (<a href=\"https:\/\/twitter.com\/tempelorg\/status\/1663998480820346882\">tweet<\/a>):<\/p>\n<blockquote cite=\"https:\/\/findanyfile.app\/versionhistory2.html\"><p><a href=\"http:\/\/apps.tempel.org\/FindAnyFile\/scripting.php\">Scripted Rules<\/a> allow for custom file matching with Lua or JavaScript code.<\/p><p>[&#8230;]<\/p><p>Rule <b>File Content<\/b> now looks inside zip files, including .docx (Word) and .xlsx (Excel) files.<\/p><p>[&#8230;]<\/p><p>The popup menu with the search locations includes a <b>Recent Locations<\/b> menu that lists folders you had previously chosen for a search.<\/p><p>If you hold down the command key when double clicking on items in the results, they&rsquo;re not opened but revealed in Finder instead.<\/p><\/blockquote>\n<p>Searching for files by name in Finder hasn&rsquo;t worked very well since Mac OS X Tiger, if not earlier. I mostly use <a href=\"https:\/\/c-command.com\/eaglefiler\/\">EagleFiler<\/a> for this, but for files that it isn&rsquo;t managing I recently started using <a href=\"https:\/\/apps.tempel.org\/FindAnyFile\/\">Find Any File<\/a> instead of the <code>find<\/code> command, in many cases. It reminds me of Mac OS 8&mdash;pre-Sherlock&mdash;in a good way.<\/p>\n\n<p><a href=\"https:\/\/findanyfile.app\/scripting.php\">Find Any File Scripts<\/a>:<\/p>\n<blockquote cite=\"https:\/\/findanyfile.app\/scripting.php\">\n<p>This makes it possible to create very specific and complex search rules.<\/p>\n<p>[&#8230;]<\/p>\n<p>Later versions of FAF may add more scripting features, such as for displaying custom columns and more information about listed files and folders, and offering more commands in the contextual menu for found items.<\/p>\n<p>[&#8230;]<\/p>\n<p>Basically, you have to implement a function named <code>match<\/code> that takes one argument, and returns either <code>true<\/code> or <code>false<\/code> (returning nothing is fine, too, and is the same as returning <code>false<\/code>). The one argument is an object providing access to many properties of the to-be-checked item (i.e. either a file or a folder).<\/p>\n<\/blockquote>\n\n<p>I like where this is going. Unfortunately, enabling the JavaScript debugger for testing doesn&rsquo;t work with notarization, so you need to downoad a separate version of the app if you want to do that.<\/p>\n\n<p id=\"find-any-file-2-4-update-2023-06-29\">Update (2023-06-29): <a href=\"https:\/\/toot.community\/@betalogue\/110623499943189451\">Pierre Igot<\/a>:<\/p>\n<blockquote cite=\"https:\/\/toot.community\/@betalogue\/110623499943189451\"><p>Absolutely delighted to find that, in macOS Ventura, doing a file search in a specific folder in the Finder is working as well as ever.<\/p><p>I mean, who ever searches for files in a specific folder using key words that appear in their file names? In 2023?<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Thomas Tempelmann (tweet): Scripted Rules allow for custom file matching with Lua or JavaScript code.[&#8230;]Rule File Content now looks inside zip files, including .docx (Word) and .xlsx (Excel) files.[&#8230;]The popup menu with the search locations includes a Recent Locations menu that lists folders you had previously chosen for a search.If you hold down the command [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2023-06-16T18:34:17Z","apple_news_api_id":"e7ee89b1-1ca0-4ae6-9b23-3b8696549996","apple_news_api_modified_at":"2023-06-29T18:04:39Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAQ==","apple_news_api_share_url":"https:\/\/apple.news\/A5-6JsRygSuabIzuGllSZlg","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[2411,346,387,30,32,2223,1842,1042,2673],"class_list":["post-39778","post","type-post","status-publish","format-standard","hentry","category-technology","tag-find-any-file","tag-javascript","tag-lua","tag-mac","tag-macapp","tag-macos-13-ventura","tag-notarization","tag-spotlight","tag-zip-archive"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/39778","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=39778"}],"version-history":[{"count":3,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/39778\/revisions"}],"predecessor-version":[{"id":39924,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/39778\/revisions\/39924"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=39778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=39778"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=39778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}