• 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: list syntax
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: referencing stuff in other files
  • Next by Date: Christian Vick NDNs
  • Previous by thread: list syntax
  • Next by thread: OT: HTML mail and multi-part mime [ not Re: list syntax ]
  • Index(es):
    • Date
    • Thread