• 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: mdls & .app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mdls & .app?


  • Subject: Re: mdls & .app?
  • From: Luther Fuller <email@hidden>
  • Date: Sun, 20 Feb 2011 10:14:09 -0600

Try this ...

tell application "Finder" to set applsList to (every application file of (path to applications folder)) as alias list
set AppleScript's text item delimiters to {"="} -- space & "=" & space
repeat with applAlias in applsList
quoted form of (POSIX path of applAlias)
(do shell script "mdls -name kMDItemLastUsedDate " & the result)
set applDate to (text item 2 of the result) as text
--
tell application "Finder" to name of applAlias
the result & return & applDate
display dialog "" default answer the result
end repeat

and notice that you will sometimes get the string "(null)" returned.

 _______________________________________________
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

References: 
 >mdls & .app? (From: Christopher Stone <email@hidden>)
 >Re: mdls & .app? (From: Steve Thompson <email@hidden>)
 >Re: mdls & .app? (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: List of all applications
  • Next by Date: Decipher Recent Items descriptors
  • Previous by thread: Re: mdls & .app?
  • Next by thread: Re: mdls & .app?
  • Index(es):
    • Date
    • Thread