Skip to content

Instantly share code, notes, and snippets.

@ttscoff
Last active February 20, 2025 09:55
Show Gist options
  • Save ttscoff/5941694 to your computer and use it in GitHub Desktop.
Save ttscoff/5941694 to your computer and use it in GitHub Desktop.
It was supposed to search for a variety of filetypes with web design-related tags. It was being really spotty until I manually set FinderFilesOnly to false in the PLIST.
<key>RawQueryDict</key>
<dict>
<key>FinderFilesOnly</key>
<false/>
<key>RawQuery</key>
<string>(true) &amp;&amp; (((InRange(kMDItemContentCreationDate,$time.today(-1Y),$time.today(+1d)) &amp;&amp; ((kMDItemOMUserTags = "*jquery*"cd) || (kMDItemOMUserTags = "*javascript*"cd) || (kMDItemOMUserTags = "*responsive*"cd) || (kMDItemOMUserTags = "*webdesign*"cd) || (kMDItemOMUserTags = "*webdev*"cd) || (kMDItemOMUserTags = "html5*"cdw) || (kMDItemOMUserTags = "*css3*"cd) || (kMDItemKeywords = "*jquery*"cd) || (kMDItemKeywords = "*javascript*"cd) || (kMDItemKeywords = "*responsive*"cd) || (kMDItemKeywords = "*webdesign*"cd) || (kMDItemKeywords = "*webdev*"cd) || (kMDItemKeywords = "*html5*"cd) || (kMDItemKeywords = "*css3*"cd)) &amp;&amp; (((kMDItemKind = "Web*"cdw) &amp;&amp; ((kMDItemKind = "Internet*"cdw) &amp;&amp; (kMDItemKind = "Location*"cdw))) || (kMDItemKind = "Markdown*"cdw) || ((kMDItemKind = "Delish*"cdw) &amp;&amp; (kMDItemKind = "Bookmark*"cdw)) || (_kMDItemGroupId = 11)))))</string>
<key>SearchScopes</key>
<array>
<string>kMDQueryScopeComputer</string>
</array>
<key>UserFilesOnly</key>
<true/>
</dict>
@ttscoff
Copy link
Author

ttscoff commented Jul 6, 2013

A more visual version of the above query:

WebDev Saved Search in Finder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment