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

Re: Getting a subset list of files


  • Subject: Re: Getting a subset list of files
  • From: "Mark J. Reed" <email@hidden>
  • Date: Sun, 03 Apr 2011 15:35:14 -0400

If the files are all in a single folder, not in any subfolders inside
that folder or anything, there's no need for find, or even ls.  Just
use the shell wildcard feature.

set prefix to "\"MACSCRIPT Digest $(date +%Y)\""
set matchingFiles to paragraphs of (do shell script "cd " & (quoted
form of POSIX path of folderToSearch) & " && printf \"%s\\n\" " &
prefix & "*")
 _______________________________________________
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

References: 
 >Re: Getting a subset list of files (From: tom wible <email@hidden>)

  • Prev by Date: Re: Why is all not all?
  • Next by Date: Re: Apple Script to combine the multiple pdf files as single pdf file
  • Previous by thread: Re: Getting a subset list of files
  • Next by thread: Do shell script: find . takes forever; throws permissions error
  • Index(es):
    • Date
    • Thread