• 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: Finding Filenames that contain a certain string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding Filenames that contain a certain string


  • Subject: Re: Finding Filenames that contain a certain string
  • From: Philip Aker <email@hidden>
  • Date: Fri, 20 Jul 2007 00:46:44 -0700

On 2007-07-20, at 00:13:25, Peter Baxter wrote:

Is there a users list that uses shell scripting to solve all these problems?

This is it. Since AppleScript implements 'do shell script', anything that it can spawn is legal chat on this list. In fact there's even a Technical Note (#2065) which shows the use of several standard shell commands successfully.

set ppath to POSIX path of (path to desktop)
set dfiles to paragraphs of (do shell script "tclsh <<< 'foreach f [glob " & ppath & "*.webarchive] {puts [file tail $f]}'")

Philip Aker
email@hidden


 _______________________________________________
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: Finding Filenames that contain a certain string
      • From: "Gary (Lists)" <email@hidden>
    • Re: Finding Filenames that contain a certain string
      • From: "J. Stewart" <email@hidden>
References: 
 >Re: Finding Filenames that contain a certain string (From: "Mark J. Reed" <email@hidden>)
 >Re: Finding Filenames that contain a certain string (From: "Stockly, Ed" <email@hidden>)
 >Re: Finding Filenames that contain a certain string (From: "Mark J. Reed" <email@hidden>)
 >Re: Finding Filenames that contain a certain string (From: Peter Baxter <email@hidden>)

  • Prev by Date: Re: Finding Filenames that contain a certain string
  • Next by Date: Choose from list goes out of screen range
  • Previous by thread: Re: Finding Filenames that contain a certain string
  • Next by thread: Re: Finding Filenames that contain a certain string
  • Index(es):
    • Date
    • Thread