• 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: ...whose modification date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ...whose modification date


  • Subject: Re: ...whose modification date
  • From: Mr Tea <email@hidden>
  • Date: Thu, 20 Jun 2002 10:28:01 +0100

This from bryan - dated 20/6/02 03.01 am:

> Is there a workaround for the failure in OS X of:
>
> tell application "Finder"
> items of alias "Incoming Images:" whose (modification date < ((current
> date) - 600))
> end tell


You could do this:

set theDate to ((current date) - 600)
set theOldStuff to {}
tell application "Finder"
set theItems to (items of alias "Incoming Images:")
repeat with n in theItems
if modification date of n < theDate then
set end of theOldStuff to n as alias
end if
end repeat
end tell


Cordially


Mr Tea
--
Brew of the day: [ibid]
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >...whose modification date (From: bryan <email@hidden>)

  • Prev by Date: Question: Setting up a script to watch a folder in OS X?
  • Next by Date: Rebuild Microsoft Entourage database
  • Previous by thread: ...whose modification date
  • Next by thread: RE:...whose modification date
  • Index(es):
    • Date
    • Thread