• 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: Getting a folder based on creation date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Getting a folder based on creation date (From: Donald Liu <email@hidden>)

  • Prev by Date: ANNOUNCE: osaxen.com supports XML-RPC
  • Next by Date: Tao of Applescript scripts found - Thank You!
  • Previous by thread: Getting a folder based on creation date
  • Next by thread: Re: Getting a folder based on creation date
  • Index(es):
    • Date
    • Thread