• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: weird behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >wierd behavior (From: tom wible <email@hidden>)

  • Prev by Date: Re: Text items
  • Next by Date: Re: Text items
  • Previous by thread: wierd behavior
  • Next by thread: Re: FYI - new TypeIt4Me feature of interest to scripters
  • Index(es):
    • Date
    • Thread