Re: list syntax
Re: list syntax
- Subject: Re: list syntax
- From: Mr Tea <email@hidden>
- Date: Sat, 25 Feb 2006 16:27:57 +0000
This from Jeremy Matthews - dated 25/2/06 13.55:
> set mysuper list to {"My PDF.pdf", "Whatever.pdf"}
> set mylist fo the name of every file in folder "Users" of startup disk whose
> kind is "Adobe PDF document" and is in list mysuperlist and whose modification
> date is "put sample date here"
You're getting close. Just a few words that need adding or trimming here and
there...
-->>>>>
set mysuperlist to {"My PDF.pdf", "Whatever.pdf"}
tell application "Finder"
set mylist to name of every file of folder "Users" of startup disk whose
kind is "Adobe PDF document" and name is in mysuperlist and modification
date > ((current date) - 2 * days)
end tell
--<<<<<
In this example, any files that were last modified more than two days before
the script is run will be filtered out. (Please note that the stuff inside
the tell block should all be one line.)
Nick
pp Mr Tea
--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >list syntax (From: Jeremy Matthews <email@hidden>) |