Ranchero Software has Big Cat, which allows you to call scripts from a contextual menu, on files in the Finder, or on text in many applications. You can process with compiled AppleScripts, or shell scripts (including Perl scripts).
Here's a perl script I keep in the Big Cat folder called "Set Type - BBEdit".
use MacPerl 'SetFileInfo';
SetFileInfo('R*ch', 'TEXT', @ARGV);
Now Playing: Henry Kissinger - Monty Python (Sings)