Re: last opened
Re: last opened
- Subject: Re: last opened
- From: Takaaki Naganoya <email@hidden>
- Date: Thu, 22 Mar 2007 16:26:17 +0900
How about "mdls" command on BSD layer?
"mdls" tells you the last used date.
<AppleScript>
set aFile to choose file
set aPOSIXpath to quoted form of POSIX path of aFile
set shellText to "mdls -name " & (ASCII character 34) &
"kMDItemLastUsedDate" & (ASCII character 34) & " " & aPOSIXpath
do shell script shellText
</AppleScript>
--> "/Users/maro/Documents/1307643.rtf -------------
kMDItemLastUsedDate = 2007-03-22 16:24:00 +0900"
And just cook the date text.
--
Takaaki Naganoya
Piyomaru Software
http://piyo.piyocast.com
email@hidden
On 2007/03/19, at 20:20, Wayne Melrose wrote:
In the Finder "get properties", it shows the "last modification date".
Is there a way to find the "last opened" date? (The same way that
you can searching in Finder.)
thanks in advance.
Wayne
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
mark.nu
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
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: | |
| >last opened (From: Wayne Melrose <email@hidden>) |