Re: Getting a folder based on creation date
Re: Getting a folder based on creation date
- Subject: Re: Getting a folder based on creation date
- From: Frank Miedreich <email@hidden>
- Date: Wed, 31 Oct 2001 14:19:49 +0100
Hi,
AFAIK the creation date of a file is not available on certain
filesystems, e.g UFS, NFS volumes, and some Mac OS X disks. Try to
access the creation date of individual files on this disk, and wrap
the code in a try catch block to get the exact error message.
You can also try to use the "info for" scripting addition. If this
fails, or lists the creation date as "missing value", then the file
system does not support creation dates.
frank
At 17:37 Uhr -0800 30.10.2001, Donald Liu wrote:
Hi all,
I'm trying to write a script to get the first folder that was
created today on OS 10.1. When I run the following script I get a
Finder error saying that it can't make some data into the expected
type. What is wrong with the 3rd line? It works fine in OS 9 (after
changing the path).
Any help and/or work around is appreciated.
Thanks (in advance),
-donald
tell application "Finder"
set today to (date "12:00:00 AM") of (current date)
set todaysbuild to first folder in folder
"Volumes:Scratch:Builds:" of startup disk whose creation date is
greater than today
end tell