That is indeed correct: you can create a _text factory_ and use that to apply 
multiple transformations, such as the 'Replace All' action, to any desired set 
of files.

To get you started:

Choose File -> New -> Text Factory to create a new text factory, and save the 
text factory file to any convenient place (e.g. to your desktop, or into the 
"Scripts" folder of BBEdit's app support folder).

Then, in the text factory window, choose your first desired action from the 
popup menu (the default action is "Change Case" but you'll want to use "Replace 
All") and set its options, then click the plus (+) button to add another action 
and set its options, etc.

Once you've added all the necessary actions to your factory, save it, then 
click the "Choose" button in the upper right corner to choose the file(s) 
and/or folder(s) you want to process, and click the green "Run" button at the 
lower right to run the text factory. (NB: The factory itself will take care of 
opening all the chosen files and processing their contents.)

At this point, the only remaining question is how to transform the currency 
values, so if you could please supply a few actual examples that would be 
helpful. :-)

Last but not least :-) I suggest as  a normal precaution that you run the 
factory against either a sample file or copies of the actual file(s) involved 
to make sure it's doing what you want, before processing your "live" data. 

[PS: For reference, you can find complete details on creating and using text 
factories in Chapter 5 of the included PDF manual, available at any time via 
Help -> User Manual.]

Regards,

 Patrick Woolsey
==
Bare Bones Software, Inc.             <https://www.barebones.com/>



> On Feb 29, 2020, at 10:05, Mark Love <[email protected]> wrote:
> 
> [...]
> 
> There seems to be some sort of automation capability in BBEdit where I could 
> run a series of transforms on the QFX file as delivered by the credit card 
> company before importing into Banktivity.  Is this true, and can someone 
> describe the BBEdit commands to transform the QFX file properly?  Here's my 
> take on the automation flow:
> 
>       • open a specified file
>       • change all occurrences of CREDIT to XXX
>       • Change all occurrences of DEBIT to CREDIT
>       • Change all occurrences of XXX to DEBIT
>       • <I'm not sure how to transform the TRNAMT values in sign only 
> (basically, multiplying by -1)>
>       • Close transformed file
> 
> Any help provided would be greatly appreciated.  BBEdit is clearly overkill 
> for my problem, but for 50-odd bucks it seems worthwhile to me to kill this 
> aggravation.
> 
> My environment:  MacOS High Sierra (10.13.6) running on a MacBook Pro early 
> 2011 (to be upgraded this summer to Catalina on a MacBook Pro 16").
> 



-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/292EB20A-CA77-4B04-8271-53FAD7D548C3%40barebones.com.

Reply via email to