Jump to content

AndyD

Member
  • Posts

    2
  • Joined

  • Last visited

Posts posted by AndyD

  1. Happy new year.
     
    I have a problem  creating a filter
     
     I want to create a set of file filters that make it easy for me to find files created today, changed today, changed yesterday. Initially I tried to create spotlight saved search. (this used to work in older version of Mac OS)
     
    The problem with using spotlight search is I use microsoft outlook to read mail. It creates a ton of file in "~/Documents/Microsoft\ User\ Data/“ Spotlight search does not provide a way for you to prune results under a directory. You can go to setting spotlight private and add this directory however that prevents spotlight from indexing these files. Outlook is not longer able to search your email. I called apple support and they confirmed my analysis. Very sad.
     
    I am hoping to do some that is the sort of like the command bellow using Alfred
     
    $ find ~ -daystart -ctime 0 print  | grep Microsoft
     
     
    Unfortunately I could not find an attribute for working with paths. You get the folder name but no path info
     
     

    $ mdls .

    _kMDItemOwnerUserID                = 504

    kMDItemContentCreationDate         = 2017-10-27 22:32:32 +0000

    kMDItemContentCreationDate_Ranking = 2017-10-27 00:00:00 +0000

    kMDItemContentModificationDate     = 2017-10-27 22:32:32 +0000

    kMDItemContentType                 = “public.folder"

     

    kMDItemDisplayName                 = "MusicTrainerCommonFramework"

     
    Kind Regards
     
    Andy
×
×
  • Create New...