Scripting Find/Replace in All Open Documents

2009-06-23 Thread Warren Michelsen
What's the correct searching in... syntax for all open text documents? I'm trying to script a Find/Replace operation that would apply to whatever docs are open. When I recorded the action, each file was separately listed. How do I specify all open text documents so as to make this generic and

Re: BBEdit capabilities and scripting

2009-06-23 Thread Harold Tessmann III
Maarten Sneep maarten.sn...@xs4all.nl typed something resembling: Harold Tessmann III schreef: Someone else has pointed out that BBEdit doesn't respond to AppleEvents while running a UNIX script or filter, but does it respond to them while running an AppleScript (he asks at work, with only

Re: Scripting Find/Replace in All Open Documents

2009-06-23 Thread Jim Correia
On Jun 23, 2009, at 11:45 AM, Warren Michelsen wrote: What's the correct searching in... syntax for all open text documents? tell application BBEdit replace asdf using qwerty searching in every text document end tell - Jim --~--~-~--~~~---~--~~

Re: BBEdit capabilities and scripting

2009-06-23 Thread Tim Gray
I just learned about the scripting menu in Xcode. Some pretty nifty features in there. For those not familiar, click on the scripts menu and select teh Edit User scripts command. Flip through the scripts. This is the kind of functionality I'd really like in BBEdit. The ability to run scripts

Re: GREP Find and Replace... half

2009-06-23 Thread Tim Gray
I just realized you might only be looking for 1 digit followed by a space. If you only ever want to match one digit use: (\d)\s with the same replace string. The previous pattern will match one or more digits. Which you may or many not want. On Jun 23, 6:40 pm, Tim Gray tg...@125px.com wrote:

Re: GREP Find and Replace... half

2009-06-23 Thread Tim Gray
Find: (\d+)\s Replace: \1/tdtd It won't work on the last set of digits if there is no space following it... On Jun 23, 5:49 pm, derol derolf...@gmail.com wrote: I'm trying to figure out a way to find using a wild card, and replace only half of my find string, leaving the wild card intact.

Re: Script to convert CSV to formatted plain text table

2009-06-23 Thread Robert A. Rosenberg
At 16:18 +0100 on 06/16/2009, Carlton Gibson wrote about Re: Script to convert CSV to formatted plain text table: Thanks for the reply... I meant to take something like this: col1,col2,col3 xx,xxx,x and turn it into something like: *** * col1 * col2 * col3 *