I don't see a menu item called "Apply Text Filter". There's "Apply Text 
Transform", but when I open that I don't see the script in dialog that 
opens with that menu. Can you elaborate? Ideally I could process a folder 
of XML files and convert then to JSON. I'm using BBedit 14.6.1.

Thanks!

On Friday, November 4, 2022 at 1:14:32 AM UTC-7 jj wrote:

> You could try yq <https://kislyuk.github.io/yq/>.
>
>  Install it from Terminal with homebrew <https://brew.sh>:
>
>     brew install python-yq
>     
> Create this simple BBEdit text filter in *~/Library/Application\ 
> Support/BBEdit/Text\ Filters/xml2json.sh*
>     
>     #!/bin/sh
>     xq '.'
>
> and call the filter from menu Text > Apply Text Filter > xml2json.
>
> HTH,
>
> Jean Jourdain
>
> On Thursday, November 3, 2022 at 1:28:42 AM UTC+1 severdia wrote:
>
>> Is there an easy way to so a simple XML to JSON conversion in BBedit? 
>> Oxygen and some other tools seem to do this, but short of creating a 
>> TextFactory or similar, I don't see an easy way to do it. 
>>
>>

-- 
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/d4956bcb-e94d-4ca7-a1a1-0ae8cdc157acn%40googlegroups.com.

Reply via email to