You should simply be able to use "open" from a script file. It will use the command line version of the 'open' command rather than the dialog.
That's what I was thinking. That's why I'm puzzled by the result & came here, Any brains are better than mine.
You may also want to close each file after the lisp routine has run. No need to keep 120 of them open on your machine.
The lisp routine TypDtlUpdate saves the drawing and closes it so I don't need that in the script. (Or perhaps I do need it. Although, I have tested it with the qsave & close, but it didn't help it any, it still would run one drawing and then stop).
I'd like to know what is the 'TypDtlUpdate' function. Perhaps there are some more another methods to solve the problem...
What exactly is the TypDtlUpdate routine? Can you post it?
Also post the scr file when created.
The TypDtlUpdate is a rather large cumbersome routine, written a while back when I didn't know much about Lisp. (Not that I know anything more now than I did then).
I'm embarrassed to show it, it really is spaghetti code. I'm not done with it yet either. There are a couple of things I still need to add, once I figure out how it goes together.
I am currently using it on these 120 drawings, one at a time.
K, here it is, don't laugh.
(see attached).
Basically, the TypDtlUpdate sets a new dimension style, text styles, & (It is suppose to move the dimensions, leaders and text to the new styles, but I haven't figured out how to move them yet).
It then cleans up any tab layouts that are un-necessary, purges the drawing, drops in a default title, qsaves & closes the drawing. It's designed for typical details that were created back in 1994 and are still in use today. The details are however, very outdated by our office standards so I was asked to update them without much time to do this task. There are roughly 800 + drawings & schedules. There are two engineers & I that are going through these drawings and deleting some we no longer need, revising others, and incorporating old with new where it is needed.
By the way, Thank you for you questions, your advice & your help on this, I really do appreciate it.