CompuServe Messages

#Script Macros

    26-Nov-91 13:09:35
Sb: #30752-#Script Macros
Fm: J.R. BOOKWALTER 76665,1335
To: Art Steinmetz 76044,3204
Art: I sat down Sunday with ProWrite 3.2.1 and the book "Using Arexx on the Amiga" and came up with a fairly workable Arexx script that formats by looking for the "*" character. Everywhere it finds one it un-indents, types a sequential number, tabs in one stop, moves the cursor down then left (to bring it at the end of the previous line), tabs in, stamps the same number as before then continues until it runs out of "*"'s. It formatted a 90-page script in 17 minutes, a vast improvement over the 3-4 hours it takes by hand. The problem is the first line of the screenplay must be set manually, then the Arexx script will copy that to each sequential lead line. I have a second script which does the whole thing (adding to it dropping unnecessary tab stops in the lead lines) but takes MUCH longer (over twice as long). Also, this script fails to accomodate any page breaks where CONTINUED would need to be numbered same as the shot preceding it. Anyway, here it is: Options results RequestText 'Number to start with?' /* Request shot number to start with */ If rc ~= -0 Then Exit number = result + 1 Do Forever /* Repeat forever */ Find "*" /* Search for lead line marker */ If rc ~= 0 Then Exit /* If lead line is not found, exit */ Type number /* Type first shot number */ ApplyFormat ASCII 9 /* Tab in one stop to fix lead line */ CursorDown CursorLeft ASCII 9 Type number newNumber = number + 1 If number < newNumber Then number = newNumber end Comments? I think searching for the "*" character is fine. It's a character that would not be normally used in a screenplay anyway. J.R.