• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: List of all applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List of all applications


  • Subject: Re: List of all applications
  • From: Christopher Stone <email@hidden>
  • Date: Mon, 21 Feb 2011 03:00:22 -0600

On Feb 20, 2011, at 17:28, Bruce Robertson wrote:
> Sorry; but no, "-onlyin" actually does not work as you expect. That is, it does NOT walk subfolders beyond 1 folder depth.

______________________________________________________________________

Hey Bruce,

------------------------------------------------------------------------------------------------
mdfind -onlyin /Applications/ 'kMDItemFSName == "*.app"c && kMDItemLastUsedDate > $time.now(-86400)'

/Applications/Calculator.app
/Applications/Preview.app
/Applications/Stickies.app
/Applications/TextEdit.app
/Applications/Utilities/AppleScript Editor.app
/Applications/Utilities/Grab.app
/Applications/Utilities/Utilities (Chris)/System Management & Information/WhatsOpen/WhatsOpen.app
/Applications/Utilities/Utilities (Chris)/System Additions/LaunchBar/LaunchBar.app
/Applications/Utilities/Utilities (Chris)/File Management & Find & Rename Utilities/Find Duplicates/dupeGuru PE/dupeGuru PE.app
/Applications/Utilities/Utilities (Chris)/File Management & Find & Rename Utilities/A Better Finder Rename/A Better Finder Rename 8.app
/Applications/Applications (Chris)/Omni Applications/OmniDazzle.app
/Applications/Applications (Chris)/Internet Apps/Bittorrent Client/uTorrent/uTorrent.app
/Applications/Applications (Chris)/Developer Tools/AppKiDo/AppKiDo.app
/Applications/Applications (Chris)/Data Storage Apps/DEVONnote/DEVONnote.app
/Applications/Applications (Chris)/AppleScript Apps/Script Debugger/Script Debugger 4.5.app
/Applications/Applications (Chris)/AppleScript Apps/Script Debugger/Script Debugger 4.5.3/Script Debugger 4.5.app
------------------------------------------------------------------------------------------------

Since I've used mdfind a bit I'm quite certain that on my machine it will descend further than one folder.  Spotlight would be quite useless if it didn't.

I've gone to the trouble of installing an older version of Script Debugger to demonstrate that 'mdfind' will discover more than one version of the same application.

--
Best Regards,
Chris _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: List of all applications
      • From: Bruce Robertson <email@hidden>
References: 
 >Re: List of all applications (From: jan <email@hidden>)
 >Re: List of all applications (From: Bruce Robertson <email@hidden>)
 >Re: List of all applications (From: Christopher Stone <email@hidden>)
 >Re: List of all applications (From: Bruce Robertson <email@hidden>)

  • Prev by Date: Re: creating a file within a folder etc...
  • Next by Date: Re: creating a file within a folder etc...
  • Previous by thread: Re: List of all applications
  • Next by thread: Re: List of all applications
  • Index(es):
    • Date
    • Thread