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

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


  • Follow-Ups:
    • Re: Getting a folder based on creation date
      • From: Frank Miedreich <email@hidden>
  • Prev by Date: Re: Mail OS X, can't move message or get date?
  • Next by Date: Re: Mirror Project XMLRPC
  • Previous by thread: program linking with folder actions
  • Next by thread: Re: Getting a folder based on creation date
  • Index(es):
    • Date
    • Thread