Re: weird behavior
Re: weird behavior
- Subject: Re: weird behavior
- From: tom wible <email@hidden>
- Date: Tue, 16 Jan 2007 18:58:10 -0500
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:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden