• 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: Filtering Folders?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filtering Folders?


  • Subject: Re: Filtering Folders?
  • From: "Marc K. Myers" <email@hidden>
  • Date: Wed, 06 Feb 2002 16:22:07 -0500
  • Organization: [very little]

> Date: Wed, 06 Feb 2002 09:26:34 -0800
> Subject: Filtering Folders?
> From: "Gregory Smith" <email@hidden>
> To: email@hidden
>
> Hello,
>
> Is there anyway to filter for folders in AS?
>
> I need to check modification dates on a server to archive jobs that are in
> excess of 'x' days without modifications.
>
> The problem I'm having is the server as part of it's nightly backup will
> change the modification dates to today's date on the main folders and nested
> folders within a job thus not allowing me to simply do a select all items
> and filter for modification date.
>
> In other words, I want to be able to set a variable with just the files
> within a folder and within any nested folders contained with the same
> ignoring all the folders.
>
> Can this be done with writing nested repeat blocks to drill down into
> folders?

Use the "the entries in" command from the Akua Sweets scripting addition:

set fldrList to the entries in (choose folder) [optn-L]
whose types are in {"fold"} to a depth of -1 as alias

NB: "[optn-L]" substitutes for the AppleScript continuation character

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[2/6/02 4:15:31 PM]
_______________________________________________
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: Re: My Worrisome Lists :-)
  • Next by Date: Bitmaps and tiff files
  • Previous by thread: Re: ASIP Mail Relay
  • Next by thread: RE: Filtering Folders?
  • Index(es):
    • Date
    • Thread