Hi Warren and Gilleain - thanks for your rapid answers. For now I am simply using 'run' on the command line and it works fine.
| Gilleain is right on about the run command. On Windows and linux, you | can also create .pym files that will specifically open into PyMOL. I don't understand this. | Another alternative is to use Python import capability. OK, thanks. | And of course, within pml files you can use blocks with explicit | continuation lines: | | if a == b: \ | for c in range(1,10): \ | print c I had tried this approach after seeing some trailing backslash processing in the source, but I couldn't make it work. For example, loading (via File/Run) a file that contains just this: a = 4 b = 4 if a == b: \ print 'equal' gets me an error: | PyMOL>a = 4 | Error: ambiguous command: | abort alias alter angle assert | accept align alter_state as attach | PyMOL>b = 4 | Error: ambiguous command: | backward bg_color bond break button | PyMOL>if a == b: \ | PyMOL>print 'equal' | Traceback (most recent call last): | File "/users/warren/pymol/products/MacPyMOL.app/pymol/modules/pymol/parser.py", line 194, in parse | exec(com2[nest]+"\n",pymol_names,pymol_names) | File "<string>", line 1, in ? | NameError: name 'a' is not defined I guess I understand what's going on here. I'm happier just calling the command line run or execfile() myself. Thanks again for the quick help. Regards, Terry.