Applescript get last opened date of file
问题 I can use set modDate to the modification date of theFile as string to get the last modified date of a file, and set modDate to the creation date of theFile as string to get the date when the file was created. Is there anything like last opened date to get the date when the file was last opened? 回答1: Yes. There is a UNIX command called kMDItemLastUsedDate that returns the date the target item was last used. set the Last_opened_date to (do shell script "mdls -name kMDItemLastUsedDate " &