On Feb 20, 2011, at 12:03, Bruce Robertson wrote: Any way to get this to work with subfolders? I have my FileMaker versions in a subfolder FileMaker Apps and I do not get results for those apps. ______________________________________________________________________
Hey Bruce,
It already dives into subs. I'm not aware that there is any analog of 'find's '-depth' filter to stop it from doing so. As far as I know you only have control of the starting point.
You do note the time constraint of 'used in the last 3600 seconds'. What happens when you change that?
Scope out the last-used-date on the apps that aren't showing up, adjust the time, and see what happens.
This will grab the 'kMDItemLastUsedDate' attribute of the selected item in the Finder and display it in the result viewer:
tell application "Finder" try set sel to selection as alias list if sel ≠ {} then set sel to sel's item 1 set sel to POSIX path of sel set sel to quoted form of sel set cmd to "mdls -name kMDItemLastUsedDate " & sel set mdlsOutput to do shell script cmd end if on error errMsg number errNum set sep to "==============================" set e to sep & return & "Error: " & errMsg & return & sep & return ¬ & "Error Number: " & errNum & return & sep beep display dialog e end try end tell
-- Best Regards, Chris |