Getting a folder based on creation date
Getting a folder based on creation date
- Subject: Getting a folder based on creation date
- From: Donald Liu <email@hidden>
- Date: Tue, 30 Oct 2001 17:37:37 -0800
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