Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list syntax



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

References: 
 >list syntax (From: Jeremy Matthews <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.