• Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    osco
    Posts: 680 from 2009/10/21
    From: Boston, USA
    "if you execute it, for every file it starts an AREXX script ("foo.rexx") with the name of the original file as parameter - though you still have to do the renaming and saving in the AREXX script itself."

    :-D Have bar.bat in Ram: Thank-you! How do you execute it? Made a "Say " script and named it foo.rexx...It read all the lines in the batch file fine Now how do you execute the line?
    foo.rexx "ram:200905021015wv300en.ps"

    Below is the process script
    options results
    arg sourcefile

    if open(input,"Ram:200905021015wv300en.ps", R) then do
    if ~open(output,"Ram:200905021015wv300en.txt", W) then call error

    Do until eof(input)
    line=readln( input)
    if pos('(',line) =1 then writeln(output, line) /* line begins with '(' at POS 1 */
    end
    close(input)
    close(output)
    end

    EXIT

    ERROR:

    SAY "ERROR"

    EXIT


    [ Edited by osco on 2010/4/26 15:58 ]
    Mac Mini 1.5GHz, 1G, 250G Drive, Apple Cinema Display, MorphOS 3.1 registered, MacOS 10 PowerBook (5,8) 1.67Hz, 2G, 80G Drive,........Waiting
    PowerBook (5,8) 1.67Hz, 2G, 40G MorphOS 3.1 unregisterd
  • »26.04.10 - 19:23
    Profile