User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
nevermind: i've dumped the finder...
property UNIX_EPOCH : date "Thursday, January 1, 1970 12:00:00 AM"
try
set fileStat to ¬
do shell script "stat -r " & quoted form of pathName
set fileStat to every word of fileStat
set fileSize to (item 8 of fileStat) / 1.0E+9
copy fileSize to rec's progLen
set fileDate to (item 10 of fileStat) as integer
set fileDate to (UNIX_EPOCH + fileDate + (time to GMT))
copy fileDate to rec's datetime
on error msg
display alert msg
end try
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users