Re: Getting files/folders by creation date in the Finder
Re: Getting files/folders by creation date in the Finder
- Subject: Re: Getting files/folders by creation date in the Finder
- From: Joe <email@hidden>
- Date: Sat, 20 Jun 2009 14:17:17 -0700
At 1:42 PM -0500 6/20/09, Christopher Stone wrote:
>I know I can do something like this:
>
>property f : alias "MyHardDrive:Users:xxxxx:Downloads:"
>
>tell application "Finder"
> set filelist to sort (get folders in f) by creation date
>end tell
>
>
>Unfortunately on my old G4 PowerBook it's rather slow, and I'm looking for a nearly instant solution.
>
>I've tried using 'ls' in a shell script
>
>property f : "/Users/xxxxx/Downloads/New Downloads/"
>
>do shell script "ls -1tr " & quoted form of f
>
>
>This is way faster than the Finder, *but* strangely it only supports 'modification date' and not 'creation date'. The mod date is likely to change on me, so it's really desirable to use the creation date.
>
>Any ideas?
Although I have never used it, you might look at "GetFileInfo" if you have Developers tools installed.
-d Gets the creation date, a string of the form "mm/dd/yyyy
hh:mm:ss" in 24-hour clock format.
HTH
Joe
_______________________________________________
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/archives/applescript-users
This email sent to email@hidden