wivaku <
wiv...@gmail.com> sez:
> I tried this with a sample file and got errors:
>
[ ... details elided ... ]
>
> I used the script from your reply:
> [and] stored it as "Tidy XML.sh" in ~/Library/Application
> Support/TextWrangler/Scripts
Those errors occurred because you ran the script directly instead of
applying it to the current document.
TextWrangler supports using such items as either[1]:
* Text filters, which process the contents of the current document, or
* Scripts, which are programs that run independently.
Thus, in order to use this file as a text filter, you must move it to:
~/Library/Application Support/TextWrangler/Text Filters/
and apply it via Text -> Apply Text Filter -> [filter name e.g. "Tidy XML"]
[1. For complete details, please see the section "Filters and Scripts"
in TextWrangler's PDF manual (choose Help -> User Manual).]
I hope this helps, and think it should cover everything. :)