Hello! This is my first post! I'm hoping to get some help with automating a workflow inside a TextEdit document.
I help out with billing for the company I work for. And I'm able to generate a list of customers who are past due from Braintree. But the report needs to be made into a proper csv file and it can't be exported the way I want. My steps would be the following...
1) Generate the report from Braintree and copy the list of customers past due.
2) Paste what I copied into a TextEdit document (as text, not rich text format).
---The following is where I need some automation ---
3) Search for all line breaks and replace with commas.
4) Search for all tabs and replace with "nothing". That is no characters. Just remove the tabs.
5) Each customer listing conveniently ends with the name of the company I work for so, to create a line break for each individual customer's listing I'll need the automation to find...
,companyname,
and replace with
,companyname[line break]
I'm handy enough to do all the above manually. But it would be nice to have a script that would allow a co-worker to take the TextEdit document, drop it into the script, and automatically have the document turn into a csv file with all the commas and line breaks in the correct places.
Would anybody be able to help, please? Thanks in advance!
I help out with billing for the company I work for. And I'm able to generate a list of customers who are past due from Braintree. But the report needs to be made into a proper csv file and it can't be exported the way I want. My steps would be the following...
1) Generate the report from Braintree and copy the list of customers past due.
2) Paste what I copied into a TextEdit document (as text, not rich text format).
---The following is where I need some automation ---
3) Search for all line breaks and replace with commas.
4) Search for all tabs and replace with "nothing". That is no characters. Just remove the tabs.
5) Each customer listing conveniently ends with the name of the company I work for so, to create a line break for each individual customer's listing I'll need the automation to find...
,companyname,
and replace with
,companyname[line break]
I'm handy enough to do all the above manually. But it would be nice to have a script that would allow a co-worker to take the TextEdit document, drop it into the script, and automatically have the document turn into a csv file with all the commas and line breaks in the correct places.
Would anybody be able to help, please? Thanks in advance!