Comments on: Rock the Funky Finder Regex http://www.red-sweater.com/blog/26/rock-the-funky-finder-regex Mac & Technology Writings by Daniel Jalkut Sun, 16 Mar 2014 19:39:31 +0000 hourly 1 http://wordpress.org/?v=3.8.1 By: Jan http://www.red-sweater.com/blog/26/rock-the-funky-finder-regex/comment-page-1#comment-354 Wed, 14 Dec 2005 12:07:38 +0000 http://www.red-sweater.com/blog/?p=26#comment-354 Neat!
It does not do exactly the same thing,
but ordering the entries by “Kind” does an
extremely good job on groping related files.
In this case, you’d have all the .m and .h files
in separate groups, making the selection a bit
easier.

Nevertheless, good to know there is a regex
script when needed ;-)

Jan

]]>
By: Daniel Jalkut http://www.red-sweater.com/blog/26/rock-the-funky-finder-regex/comment-page-1#comment-24 Sat, 03 Sep 2005 03:27:55 +0000 http://www.red-sweater.com/blog/?p=26#comment-24 Hah! I didn’t think when I wrote this script that I’d be exposing a weakness in Apple’s Script Menu. If you’re not familiar with my FastScripts product, it’s basically ASM on steroids. The result of 3 years of gradually improving upon what started out as a frustrated “ASM is not good enough” sentiment.

I really thought that the ASM supported shell scripts, but maybe that functionality got lost somewhere along the way. The nice thing about running it with FastScripts is you can also associate it with a keystroke for super-easy invocation while you’re keyboard navigating in the Finder. Plug, plug! :)

Regular expressions are slightly different than “wildcard” notation. The * in a regular expression means “0 or more of what I am tagging”. In your example of “*indow” there has to be something before the * to tag. So you could say “.*indow” which means “match 0 or more of any character (.) followed by indow”. To literally match “ends in indow” you would use the expression “indow$” which means “find indow followed by the end”.

Since the script is using perl, you can find some great references out there by searching google for “perl regular expressions.”

]]>
By: Simone Manganelli http://www.red-sweater.com/blog/26/rock-the-funky-finder-regex/comment-page-1#comment-22 Sat, 03 Sep 2005 02:30:31 +0000 http://www.red-sweater.com/blog/?p=26#comment-22 Heh heh. Just saw this after looking at your Apple bug post. This is SO AWESOME. The only thing is that I can’t get it to work from the Script menu! :( Any suggestions? (I tried adding a .command or .pl extension, but still no dice.)

I can get it to work by adding a “.command” extension so that it’s double-clickable, but then it requires me to open the enclosing folder, and endure an extra Terminal window. Also, how come I can’t do a regular expression such as “*indow”? It complains, saying “quantifier follows nothing in regex”, but I thought that “*indow” would simply mean that it ends in “indow”?

– Simone

]]>