View Single Post
Old 02-02-2018, 01:22 AM   #4
Thasaidon
Hedge Wizard
Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.
 
Thasaidon's Avatar
 
Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
Well I have finally got the first macro done and I am starting to get the hang of the commands I am using. I have however had to junk what I had done and start again several times. I also had some problems with a couple of programs which interfered (OneLoup and Jettico Firewall)

Basically the macro will take the book selected in library view and open it in Editor. It then performs a number of actions in editor (prettify, mend HTML, smarten punctuation, remove unused css, compress inages, and check book).

After running 'check book' it waits until 'enter' is pressed which allows me to correct the errors.

On pressing 'enter' it then saves the edited file and closes editor.

Creating the macro was complicated by the focus constantly changing from toolbar button, to pop up window to new screen. I had problems getting this right. The copy function often got it wrong (probably my fault).

I am now going to start on the next macro which I will chain to the one just finished.

Hope this is of interest. I'll be back.
Thasaidon is offline   Reply With Quote