• 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
Getting a subset list of files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting a subset list of files


  • Subject: Getting a subset list of files
  • From: Jim Brandt <email@hidden>
  • Date: Sat, 02 Apr 2011 08:13:52 -0500

I have a need to get a list of files from a folder that has a lot of files in it (currently over 3900). The subset is defined by the first piece of the file name. So to test this, I put together this snippet of code:

set Originals to "HD1:InfoMac:•Orginals:"
set MacD to "MACSCRPT Digest " & (do shell script ("date \"+%Y\"") as text)
tell application "Finder" to set OrgList to every file of folder Originals whose name begins with MacD
display dialog (count of OrgList) as text

Currently there are 23 files that meet this criteria.

The script ends in a error that it has timed out. While I know how to fix that, its unacceptable for it to take as long as it does.

My question:

Is there a faster way to isolate a list of files from a larger set based on part of the name?

TIA,

Jim
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Getting a subset list of files
      • From: Doug McNutt <email@hidden>
    • Re: Getting a subset list of files
      • From: KOENIG Yvan <email@hidden>
  • Prev by Date: Re: Find all PowerPC Applications in Applications folder
  • Next by Date: Re: Getting a subset list of files
  • Previous by thread: Re: Apple Script to combine the multiple pdf files as single pdf file
  • Next by thread: Re: Getting a subset list of files
  • Index(es):
    • Date
    • Thread