Bossa Nova <[email protected]> sez: >I'm trying to write a script (but have little idea how) that would: > >1. In BBEdit open all HTML files of a selected Finder folder and (!) >all HTML files of its subfolders >2. Format them with "Gentle Hierarchical" >3. Save and close all files >4. Quit BBEdit >
If you're just looking for an easy way to reformat all the HTML files in one or more folders, I'd suggest using a text factory with the "Format Markup" action instead of a script. ( You can also configure the text factory to apply a file filter to the target folder(s) to ensure that, e.g. it only processes files with a suffix of ".html". For detailed info about text factories and file filters, please see BBEdit's PDF manual [Help -> User Manual].) Regards, Patrick Woolsey == Bare Bones Software, Inc. <http://www.barebones.com> P.O. Box 1048, Bedford, MA 01730-1048 -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
