CompuServe Thread

Script macro

5 messages in this thread
#30962From: J.R. BOOKWALTERNov 30, 1991 6:13 PM
Art, Tried the new macro, but can't seem to get it to number the CONTINUEDs. Did I miss something somewhere? Also, I'm assuming the need to format the first lead line in the script the way I want it to appear throughout (only two tabs & properly indented)? J.R.
#31024From: Art SteinmetzDec 2, 1991 2:59 PM
I see my formatting got munged by Whap! I hope you sorted it out. No, you don't need to format the first lead line. The LeadRuler string variable has the ruler line parameters. The MakeRuler procedure can only handle setting one tab stop but you can modify it to add another. What DOES happen when the macro I modified encounters the CONTINUE string? It should decrement the number variable and proceed as usual. — Art
#31026From: J.R. BOOKWALTERDec 2, 1991 4:43 PM
Hmmm…something definately got munged, then. I can't seem to get the macro to do anything other than what my original one did. How about LZHing it and sending it up to me via e-mail? That way we'll make sure it won't get lost. Thanks, J.R.
#31254From: tom millerDec 6, 1991 10:37 AM
J.R., I think you and Art have the macro you need already, but would just like to add my two cents in. I would have responed to your first message, but a) I was waiting for newest ProWrite. b) Installed 2.0. c) Had my term crash in new OS. Anyway, I beleive that a simple macro should work at the time it's needed and not have to do a global on a finished product. This macro uses the CLIPS to hold the scene number — that way you can save it with the script and reinstate it when you start work again. It will keep track of the scene number your on. Also you will see that very few Arexx commands are used, most are ProWrite. You just type your line, Caps or Lower case, and hit the Shifted Fkey. The Macro takes care of everything else. To test you must first type — rx "SETCLIP(scene,1)" in the cli. If you like this we can add a setup macro that takes care of that and an ending macro that will remember the last scene number for next time. 1 > OPTIONS RESULTS 2 > n = GETCLIP(scene) 3 > AltDown;ShiftDown;CtrlDown;CursorLeft;Extract 4 > LineIn = UPPER(RESULT) 5 > LeftIndent 220;LeftMargin 540;RightMargin 0 6 > TabDecimal;AddTab 5580 ;Type LineIn;ASCII 9;Type n 8 > n=n+1;SETCLIP(scene,n) 9 > NewParagraph;LeftIndent 540;LeftMargin 540;RightMargin 540 Arexx stuff is in caps. I think it's self explainitory. If you need clarification just ask. If you like it we'll start on the other two plus an insert and move macro. -Tom exit
#31264From: J.R. BOOKWALTERDec 6, 1991 1:29 PM
Tom, Thanks. I'm going to log off and try your macro out. Maybe between Art and you and I we can get a workable macro going! J.R.