Re: Finding Filenames that contain a certain string
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
|
_______________________________________________
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