Re: Insert Next List Item

2012-03-28 Thread Kendall Conrad
For anyone that was waiting, I did update the script to include handling of + listed items. I also added . I made some other enhancements too while I was at it. The numerical listing handles both going 3. to 4., but also 2.4. to 2.5. so it handles decimal numbering or sub sections. Lastly, I

Tidy Cleanup Problem

2012-03-28 Thread Rick Gordon
I've put together a text factory to operate on XHTML files, and the last step is Tidy Cleanup Document, with the only checked items as Discard empty paragraphs and Enclose block text. It does just what I want -- different from anything I can get with Tidy Reflow Document (though glad to be

Re: Tidy Cleanup Problem

2012-03-28 Thread TJ Luoma
On Wed, Mar 28, 2012 at 5:21 AM, Rick Gordon li...@rickgordon.com wrote: So how can I -- on an entire project -- get the result of Tidy Cleanup Document without the entity conversion -- or else, how can I reconvert the entities to their numeric form. My first thought is that you might pipe

Automating HTML in BBedit with AppleScript

2012-03-28 Thread blue-orange
Hello, I have the following task of creating a page with 1000 thumbnails linked to larger files. I want to automate the task and the automation part is an unfamiliar territory for me. I have two txt files containing 1000 thumbnail and original image filenames that look like this: original.txt:

Re: Automating HTML in BBedit with AppleScript

2012-03-28 Thread TJ Luoma
On Wed, Mar 28, 2012 at 5:21 AM, blue-orange goo...@etculli.com wrote: I have two txt files containing 1000 thumbnail and original image filenames that look like this: original.txt: Photo_19001_2010-11-18_13.45.59_orig.jpg Photo_19002_2010-11-18_21.07.04_orig.jpg

Re: Tidy Cleanup Problem

2012-03-28 Thread Patrick Woolsey
At 09:18 -0400 03/28/2012, TJ Luoma wrote: On Wed, Mar 28, 2012 at 5:21 AM, Rick Gordon li...@rickgordon.com wrote: So how can I -- on an entire project -- get the result of Tidy Cleanup Document without the entity conversion -- or else, how can I reconvert the entities to their numeric form.

Re: Tidy Cleanup Problem

2012-03-28 Thread LuKreme
On 28 Mar 2012, at 09:57 , Patrick Woolsey wrote: [1. Please note that whatever options you set for 'tidy', you'll need to redirect error output away from stderr, otherwise the combined output will be directed to BBEdit's Unix Script Output window instead of replacing the current document's

Re: Tidy Cleanup Problem

2012-03-28 Thread Patrick Woolsey
At 10:20 -0600 03/28/2012, LuKreme wrote: On 28 Mar 2012, at 09:57 , Patrick Woolsey wrote: [1. Please note that whatever options you set for 'tidy', you'll need to redirect error output away from stderr, otherwise the combined output will be directed to BBEdit's Unix Script Output window

Re: Tidy Cleanup Problem

2012-03-28 Thread Spencer Whetstone
Can this sort of substitution be done across multiple files at once? I am totally lost with shell scripts. If so, an example would be appreciated. -- Spencer Whetstone Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Wednesday, March 28, 2012 at 13:39, Patrick Woolsey wrote: At

Re: Tidy Cleanup Problem

2012-03-28 Thread David Eves
On Wed, Mar 28, 2012 at 10:39 AM, Patrick Woolsey pwool...@barebones.com wrote: At 10:20 -0600 03/28/2012, LuKreme wrote: On 28 Mar 2012, at 09:57 , Patrick Woolsey wrote: [1. Please note that whatever options you set for 'tidy', you'll need to redirect error output away from stderr, otherwise

Re: Tidy Cleanup Problem

2012-03-28 Thread François Schiettecatte
Just set a file name in place of the '/dev/null' /usr/bin/tidy -f error1.log -config /path/to/your/tidyconfig.txt 2 error2.log You should check the man page for tidy, lots of good stuff there. man tidy François On Mar 28, 2012, at 2:29 PM, David Eves wrote: On Wed, Mar

Re: Automating HTML in BBedit with AppleScript

2012-03-28 Thread Christopher Stone
On Mar 28, 2012, at 04:21, blue-orange wrote: I have the following task of creating a page with 1000 thumbnails linked to larger files. I want to automate the task and the automation part is an unfamiliar territory for me.

Re: Tidy Cleanup Problem

2012-03-28 Thread Robert A. Rosenberg
At 02:21 -0700 on 03/28/2012, Rick Gordon wrote about Tidy Cleanup Problem: So how can I -- on an entire project -- get the result of Tidy Cleanup Document without the entity conversion -- or else, how can I reconvert the entities to their numeric form. Depending on how many different