RegEx in Scripts

How can I use regular expressions now in OSX? I used to use an OSAX in OS9. Grep wants to check a file. How do I send a string to check through a shell script? I thought I had figured this out months ago and now I can’t find my example that I saved in a “Safe Place” :frowning:

I’m speculating, having not actually done this yet :wink:

There is an OSAX called mgrep.

As well you can pass arguments to a shell script:

do shell script " grep " & variable_with_word_in_it & " " & variable_with_filename & "

I may have too many "'s in there…


Satimage scripting addition does regular expressions nicely in Mac OS X. It’s a free download from