Re: Finding Files containing a string
Re: Finding Files containing a string
- Subject: Re: Finding Files containing a string
- From: Rob Stott <email@hidden>
- Date: Mon, 9 Jul 2007 11:44:28 +0100
Yup, I think Wayne's right to suggest shell scripting. Personally, I'd have done it slightly differently though;
set theSourceFolder to POSIX path of (choose folder) set theResult to every paragraph of (do shell script "egrep -l 'I325010[a-z]' " & (theSourceFolder & "*"))
repeat with theFile in theResult --whatever you want to do with your files... end repeat ...note that you'll end up with a list of posix paths, not aliases.
Hope that's of some help!
Rob
Important: This message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination or copying of the communication is strictly prohibited. If you have received this communication in error, please notify the writer immediately by telephone and return the original message via postal service to the writer's attention at the above address. Thank you.
Watt Gilchrist Limited. Albion Mills, Albion Road. Bradford, BD10 9TQ
Registered in England
873405
|
_______________________________________________
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