[TxMt] Simple command assist

Rob McBroom textmate at skurfer.com
Fri Nov 16 16:02:25 UTC 2007


On Nov 16, 2007, at 6:49 AM, Saul Rosenbaum wrote:

> I have a very simple command
>
> names=( $TM_SELECTED_TEXT )
> for name in ${names[@]}
> do
>    touch $TM_DIRECTORY/$name.php
> done
>
> basically you select a list of text
>
> about
> policies
> hours
> contact_us
>
> and it generates a php page for each item in the current directory  
> - it does that well enough, what would be truly excellent (and I  
> think this is easy) is to gather all those pages into a scratch  
> project - I actually have a laundry list of things I'd like it to  
> do (all likely pretty easy IMHO) but I really don't want to seem  
> greedy - I appreciate the effort everyone on this list puts out on  
> a daily basis..

Was there a question in there somewhere? If you're asking how to  
create a project from the new files, I think just adding `mate  
"$TM_DIRECTORY"` to the end of the command would do it.

---
Rob McBroom
<http://www.skurfer.com/>
I didn't "switch" to Apple... my OS did.





More information about the textmate mailing list