Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: weird behavior



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

This email sent to email@hidden
References: 
 >wierd behavior (From: tom wible <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.