From: Ajasja Ljubetič (ajasja.ljubetic_at_gmail.com)
Date: Mon Nov 01 2010 - 06:00:58 CDT

set output [open "output" w]
puts $output [$sel get {x y}]
close $output

should work.

For the second case, writepdb belongs to the selection, so you have to do
$sel writepdb output.pdb

Regards,
Ajasja

On Mon, Nov 1, 2010 at 10:30, Christian Jorgensen <
christian.jorgensen_at_merton.ox.ac.uk> wrote:

> Hi all,
> I have a set of coordinates {x y} printed on the Tkconsole screen, which is
> not very helpful as they are an abundant lot. When I try to write them in an
> output the file is consistently blank:
>
> set sel [$sel get {x y}]
> set output [open "output" w]
> close $output
>
> yields a blank output file
>
>
> If I try
> writepdb $output output.pdb
>
> I also get a blank file.
>
> Any comments would be very appreciated.
> Christian
>
>