Re: mdls & .app?
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