• 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
Automating a task in the finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Automating a task in the finder


  • Subject: Automating a task in the finder
  • From: "Syllas Rodner" <email@hidden>
  • Date: Wed, 6 Nov 2002 13:01:16 -0800

Hi
I want to automate a task in the finder. I want Finder to find every item of a
folder and its subfolders whose the modification date is greater than a
specific Date.
I would like to know:
1-) If it's posssible
2-) What are the statements.

I've tried it the following ways :
1-)
tell application "Finder"
set MyFolder to folder "Disk:Test:"
set FoldersList to {}
set SpecificDate to date "Thursday, November 05, 2002 12:55:15 PM"
set FoldersList to ( every item whose modification date is greater than
SpecificDate ) of entire contents of MyFolder
end tell

2-)
tell application "Finder"
set MyFolder to folder "Disk:Test:"
set FoldersList to {}
set SpecificDate to date "Thursday, November 05, 2002 12:55:15 PM"
set FoldersList to ( every item of entire contents of MyFolder ) whose
modification date is greater than SpecificDate
end tell.

In both cases I should get all items of Myfolder whose modification date is
greater than "Thursday, November 05, 2002 12:55:15 PM".
But I get all items or a wrong result.


I would like to know what's wrong with those statements

I'm using Mac OS 9.x

Any help will be appreciated !

Thank you
_______________________________________________
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.

  • Prev by Date: TIDs
  • Next by Date: Re: login script
  • Previous by thread: TIDs
  • Next by thread: Re: Automating a task in the finder
  • Index(es):
    • Date
    • Thread